Skip to content
Snippets Groups Projects
json.rst 501 B

JSON

In order to better support JSON, you should declare each of your class that supports being converted to JSON with

Then you can convert structures made out of standard serializable Python JSON objects, such as dicts and lists, and also JSONAble objects, by this all

You might also want to check out the JSONEncoder satella uses to do it.