gfw.common.serialization#
Serialization utilities.
Functions
Convert supported objects to a JSON-serializable string. |
- 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: