CompactedJsonValue transforms LiveObject types into JSON-serializable equivalents.
LiveMap becomes an object, LiveCounter becomes a number, binary values become base64-encoded strings,
other primitives remain unchanged.
Additionally, cyclic references are represented as { objectId: string } instead of in-memory pointers to same objects.
CompactedJsonValue transforms LiveObject types into JSON-serializable equivalents. LiveMap becomes an object, LiveCounter becomes a number, binary values become base64-encoded strings, other primitives remain unchanged.
Additionally, cyclic references are represented as
{ objectId: string }instead of in-memory pointers to same objects.