3 Jun
2013
3 Jun
'13
6:58 p.m.
Nick Coghlan <ncoghlan@...> writes:
Note that while JSON itself doesn't handle arbitrary reference graphs, people actually *store* complex graph structures in JSON all the time. It's just that there are no standard syntax/semantics for doing so (logging.dictConfig, for example, uses context dependent named references, while jsonschema uses $ref fields).
A more generalised version of the dictConfig approach, using JSON-serialisable dictionaries to describe more complex object graphs (including cross-references), is described here: http://pymolurus.blogspot.co.uk/2013/04/using-dictionaries-to-configure-obje... Regards, Vinay Sajip