class_docstr: Typed objects that can be logged with `wandb.log()` and visualized by wandb.
  
  The objects will be serialized as JSON and always have a _type attribute that
  indicates how to interpret the other fields.
class_docstr_tok: ["Typed","objects","that","can","be","logged","with","`","wandb.log","(",")","`","and","visualized","by","wandb",".","The","objects","will","be","serialized","as","JSON","and","always","have","a","_type","attribute","that","indicates","how","to","interpret","the","other","fields","."]
docstr: Serialize the object into a JSON blob.
  
  Uses current run or artifact to store additional data.
  
  Args:
      run_or_artifact (wandb.Run | wandb.Artifact): the Run or Artifact for which
          this object should be generating JSON for - this is useful to to store
          additional data if needed.
  
  Returns:
      dict: JSON representation
docstr_tok: ["Serialize","the","object","into","a","JSON","blob",".","Uses","current","run","or","artifact","to","store","additional","data",".","Args",":","run_or_artifact","(","wandb.Run","|","wandb.Artifact",")",":","the","Run","or","Artifact","for","which","this","object","should","be","generating","JSON","for","-","this","is","useful","to","to","store","additional","data","if","needed",".","Returns",":","dict",":","JSON","representation"]
code: def to_json(
      self, run_or_artifact: Union["LocalRun", "Artifact"]
  ) -> dict:
      """Serialize the object into a JSON blob.
  
      Uses current run or artifact to store additional data.
  
      Args:
          run_or_artifact (wandb.Run | wandb.Artifact): the Run or Artifact for which
              this object should be generating JSON for - this is useful to to store
              additional data if needed.
  
      Returns:
          dict: JSON representation
      """
      raise NotImplementedError
  
imports: from typing import TYPE_CHECKING, Any, ClassVar, Dict, List, Optional, Type, Union
  from wandb import util
label_desc: Use image node_id 2 for calling the WBValue obj's underlying member method code with example usage: obj.to_json(run_or_artifact) without return types