Implements JSON CRDT Patch codec for JSON serialization format, which is a verbose human-readable format designed for debugging and testing.
This module encodes the Patch into a JavaScript POJO. You can then use any JSON serializer to serialize the POJO into a string or a binary format.
Usage:
const encoded = JSON.stringify(encode(patch));const decoded = decode(JSON.parse(encoded)); Copy
const encoded = JSON.stringify(encode(patch));const decoded = decode(JSON.parse(encoded));
Implements JSON CRDT Patch codec for JSON serialization format, which is a verbose human-readable format designed for debugging and testing.
This module encodes the Patch into a JavaScript POJO. You can then use any JSON serializer to serialize the POJO into a string or a binary format.
Usage: