class documentation

A class that conforms to JSONableInstance can be both serialized to and deserialized from JSON by a JSONRegistry. JSONableInstance.

Class Method fromJSON Load an instance of this type from the given deserialized JSON object, which should be in the format returned by an instance of this class's toJSON method.
Class Method typeCodeForJSON On a JSONableInstance, the typeCodeForJSON method must be a classmethod, because the class needs to be registered for de-serialization at class-definition time, before any instances exist.

Inherited from JSONable:

Method toJSON Convert this callable to a JSON-serializable dictionary.

Load an instance of this type from the given deserialized JSON object, which should be in the format returned by an instance of this class's toJSON method.

@classmethod
def typeCodeForJSON(cls) -> str: (source)

On a JSONableInstance, the typeCodeForJSON method must be a classmethod, because the class needs to be registered for de-serialization at class-definition time, before any instances exist.

See Also
HasTypeCode