gfw.common.serialization.to_json#
- to_json(s)[source]#
Convert supported objects to a JSON-serializable string.
- Parameters:
s (Any) – The object to serialize.
- Returns:
A string representation of the object.
- Raises:
NotImplementedError – If the object type is not supported.
- Return type: