(cls, indent=0)
return json.dumps(cls.as_dict(), indent=indent)
serialize to JSON
    :rtype: str
serialize to JSON
    :rtype: str
serialize to JSON : rtype : str
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)
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 )