code: def test_filearchive_json_single_file(self, tmp_path):
      export_name = "archive_json"
      data = {"meta": "test"}
      archive = FileArchive(
          root=os.fspath(tmp_path), export_name=export_name, pack=False
      )
      archive.add(
          filename="metadata.json",
          data=json.dumps(data),
          info={"mime_type": "text/json"},
      )
      assert len(archive) == 1
      assert archive.listing() == ["metadata.json"]
      archive.export()
      fname = os.fspath(tmp_path / f"{export_name}_metadata.json")
      assert os.path.isfile(fname)
      with open(fname) as f:
          assert json.load(f) == data
      assert archive.listing() == []
  
file_path: holoviews/holoviews/tests/core/test_archives.py
imports: import json
  import os
  import tarfile
  import zipfile
  import numpy
  from holoviews import Image
  from holoviews.core.io import FileArchive, Serializer
label_desc: Use image node_id 8 for calling the TestFileArchive obj's underlying member method code with example usage: obj.test_filearchive_json_single_file(tmp_path) without return types