parameters: (cls, indent=0)
return_statement: return json.dumps(cls.as_dict(), indent=indent)
docstring: serialize to JSON
      :rtype: str
docstring_summary: serialize to JSON
      :rtype: str
docstring_tokens: serialize to JSON : rtype : str
function: def to_json(cls, indent=0):
      """
      serialize to JSON
      :rtype: str
      """
      # for consistency, use as_dict then go to json from there
      return json.dumps(cls.as_dict(), indent=indent)
function_tokens: def to_json ( cls , indent = 0 ) : # for consistency, use as_dict then go to json from there return json . dumps ( cls . as_dict ( ) , indent = indent )