DataDecoder
-
class
compas.utilities.DataDecoder(*args, **kwargs)[source] Bases:
json.decoder.JSONDecoderData decoder for custom JSON serialisation with support for COMPAS data structures and geometric primitives.
Methods
__init__(*args, **kwargs)object_hook, if specified, will be called with the result of every JSON object decoded and its return value will be used in place of the givendict.decode(s[, _w])Return the Python representation of
s(astrinstance containing a JSON document).object_hook(o)raw_decode(s[, idx])Decode a JSON document from
s(astrbeginning with a JSON document) and return a 2-tuple of the Python representation and the index inswhere the document ended.