yfpy.utils.complex_json_handler

complex_json_handler(obj)[source]

Custom handler to allow custom YFPY objects to be serialized into JSON.

Parameters:

obj (Any) – Unserializable Python object to be serialized into JSON.

Returns:

Serializable version of the Python object.

Return type:

Any