Extension of the python JSONDecoder class aware of pyvsim objects (via the PyvsimObject interface) and numpy.ndarrays
Methods
Objects are encoded in a special-purpose dictionary with the magic entry “object_type”. When this key is found, an object of the type is instantiated and receives the data contained in the dictionary.
Another problem is dealing with object copies. The variable cornFlakes stores a reference to each object that was already unpacked, and when the internal identifiers match, the pointer is reused.