This class can be used to serialize objects with cyclic references.
It can take an object value and generate a string that represents the information contained in the object.
The class can also do the opposite, i.e. process a string with an object representation and recreate the original object value.
The class takes care of cyclic object references, i.e. objects that reference other objects and those objects contain references back to the original objects.
It uses object keys to represent object values and detect cyclic references.
|