code: def dump_json(obj: Any) -> str:
      return f'"{escape_str(json.dumps(obj, cls=JSONEncoder))}"'
  
file_path: hail/hail/python/hail/utils/jsonx.py
imports: from typing import Any
  import json
  import numpy
  import pandas
  from .frozendict import frozendict
  from .struct import Struct
  from .interval import Interval
  from ..genetics.locus import Locus
  from ..genetics.reference_genome import ReferenceGenome
  from .misc import escape_str
label_desc: Use image node_id 1 for calling a global function with example usage: dump_json(obj) and returns: str, escape_str, str