class_docstr: Default JSON Encoder which encodes Jsonable object to JSON.
docstr: Override encode to prevent redundant dumping.
docstr_tok: ["Override","encode","to","prevent","redundant","dumping","."]
code: def encode(self, obj: Any) -> str:
      """Override encode to prevent redundant dumping."""
      if (
          obj.__class__.__name__ == "RuntimeParameter"
          and obj.ptype == str
      ):
          return self.default(obj)
  
      return super().encode(obj)
  
imports: import importlib
  import inspect
  import json
  from typing import Any, Dict, Type, Union, Mapping, Sequence
  from tfx.utils import deprecation_utils
  from tfx.utils import doc_controls
  from tfx.utils import proto_utils
  from google.protobuf import message
label_desc: Use image node_id 1 for calling the _DefaultEncoder obj's underlying member method code with example usage: obj.encode(obj) and returns: super, self