bobocep.bobocep.BoboJSONable

class bobocep.bobocep.BoboJSONable[source]

Bases: ABC

An abstract interface for JSONable types.

__init__()
abstract static from_json_dict(d: dict) BoboJSONable[source]
Parameters:

d – A JSON dict representation of an object of this type.

Returns:

A new instance of this type.

abstract static from_json_str(j: str) BoboJSONable[source]
Parameters:

j – A JSON str representation of an object of this type.

Returns:

A new instance of this type.

abstract to_json_dict() dict[source]
Returns:

A JSON dict representation of an object of this type.

abstract to_json_str() str[source]
Returns:

A JSON str representation of an object of this type.