json-joy
    Preparing search index...

    Module json-crdt-patch/codec/json

    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));

    Interfaces

    JsonCodecDelOperation
    JsonCodecInsArrOperation
    JsonCodecInsBinOperation
    JsonCodecInsObjOperation
    JsonCodecInsStrOperation
    JsonCodecInsValOperation
    JsonCodecInsVecOperation
    JsonCodecNewConOperation
    JsonCodecNopOperation
    JsonCodecObjectOperation
    JsonCodecOperationBase
    JsonCodecPatch
    JsonCodecUpdArrOperation

    Type Aliases

    JsonCodecNewArrOperation
    JsonCodecNewBinOperation
    JsonCodecNewObjOperation
    JsonCodecNewStrOperation
    JsonCodecNewValOperation
    JsonCodecNewVecOperation
    JsonCodecOperation
    JsonCodecTimespan
    JsonCodecTimestamp
    JsonCrdtPatchMnemonic
    NotUndefined

    Functions

    decode
    encode