class_docstr: JSONMetadata is a type for encoding arbitrary metadata as files.
code: def to_json(
      self, run_or_artifact: Union["LocalRun", "Artifact"]
  ) -> dict:
      json_dict = super().to_json(run_or_artifact)
      json_dict["_type"] = self.type_name()
  
      return json_dict
  
file_path: wandb/wandb/sdk/data_types/base_types/json_metadata.py
imports: import codecs
  import os
  from typing import TYPE_CHECKING, Type, Union
  from wandb import util
  from wandb.sdk.lib import runid
  from .._private import MEDIA_TMP
  from .media import Media
label_desc: Use image node_id 3 for calling the JSONMetadata obj's underlying member method code with example usage: obj.to_json(run_or_artifact) and returns: json_dict