Base¶
Resource¶
JSON¶
Base classes to encode classes.
-
class
torweb.api.json.base.
JsonObjectWrapper
(obj)[source]¶ Bases:
object
Base class for serializeable object wrappers.
-
as_dict
()[source]¶ Returns a dictionary of all
attributes
.
-
attributes
= ()¶ All names of attributes to copy into the json dictionary
-
rename
= ()¶ List or tuple of tuples or a dictionary with two values: The old and the new attribute name.
-