def to_json(self) -> str:
    'Marshals the object into a stringified JSON serialization. Keys are first sorted\n        and the JSON rendered removes all unnecessary whitespace.\n\n        Returns:\n           str: JSON string representation\n        '
    return json.dumps(self.to_data(), sort_keys=True, separators=(',', ':'))
Marshals the object into a stringified JSON serialization. Keys are first sorted
and the JSON rendered removes all unnecessary whitespace.

Returns:
   str: JSON string representation
def to_json(self) -> str:
    'Marshals the object into a stringified JSON serialization. Keys are first sorted\n        and the JSON rendered removes all unnecessary whitespace.\n\n        Returns:\n           str: JSON string representation\n        '
    return json.dumps(self.to_data(), sort_keys=True, separators=(',', ':'))