The object to decode.
Replaces shared references within the object graph with special strings that act as "pointers" to the shared object. When the object graph is serialized as JSON, this reduces the serialized footprint and also allows cycles within the object graph, which would normally cause an error. Please keep in mind that this alters the passed in object and hence has no explicit return value.
The object to encode.
Performs the inverse of encodeObjectReferences(), i.e. turns "pointers" back into shared object references. Please keep in mind that this alters the passed in object and hence has no explicit return value.