json_serializable
Base class for all objects that need to be JSON serializable.
- class JSONSerializable[source]
Bases:
object
Base class for all objects that need to be JSON serializable.
Implements “to_json” and “from_json” for serialization and deserialization, respectively. Other classes that also need to be JSON serializable have to inherit from this class and reimplement these methods, if necessary.