DataDecoder
- class compas.data.DataDecoder(*args, **kwargs)[source]
Bases:
json.decoder.JSONDecoder
Data decoder for custom JSON serialization with support for COMPAS data structures and geometric primitives.
Methods
decode
(s[, _w])Return the Python representation of
s
(astr
instance containing a JSON document).object_hook
(o)raw_decode
(s[, idx])Decode a JSON document from
s
(astr
beginning with a JSON document) and return a 2-tuple of the Python representation and the index ins
where the document ended.