(
    data: JSONInput, indent: Optional[int] = 0, sort_keys: bool = False
)
return result
Serialize an object to a JSON string.

    data: The JSON-serializable data.
    indent (int): Number of spaces used to indent JSON.
    sort_keys (bool): Sort dictionary keys. Falls back to json module for now.
    RETURNS (str): The serialized string.
Serialize an object to a JSON string.
Serialize an object to a JSON string .
def json_dumps(
    data: JSONInput, indent: Optional[int] = 0, sort_keys: bool = False
) -> str:
    """Serialize an object to a JSON string.

    data: The JSON-serializable data.
    indent (int): Number of spaces used to indent JSON.
    sort_keys (bool): Sort dictionary keys. Falls back to json module for now.
    RETURNS (str): The serialized string.
    """
    if sort_keys:
        indent = None if indent == 0 else indent
        result = _builtin_json.dumps(
            data, indent=indent, separators=(",", ":"), sort_keys=sort_keys
        )
    else:
        result = ujson.dumps(data, indent=indent, escape_forward_slashes=False)
    return result
def json_dumps ( data : JSONInput , indent : Optional [ int ] = 0 , sort_keys : bool = False ) -> str : if sort_keys : indent = None if indent == 0 else indent result = _builtin_json . dumps ( data , indent = indent , separators = ( "," , ":" ) , sort_keys = sort_keys ) else : result = ujson . dumps ( data , indent = indent , escape_forward_slashes = False ) return result