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

object_hook

Inherited Methods

decode

Return the Python representation of s (a str instance containing a JSON document).

raw_decode

Decode a JSON document from s (a str beginning with a JSON document) and return a 2-tuple of the Python representation and the index in s where the document ended.