Module json_crdt

Module json_crdt 

Source
Expand description

JSON CRDT - Automerge-like nested object CRDT.

Provides collaborative editing of JSON-like documents with:

  • Nested objects and arrays
  • Path-based operations
  • Conflict-free concurrent edits
  • Multi-value registers for concurrent writes

Uses a shared causal context for correct semantics.

Structsยง

ArrayChange
ArrayId
Unique identifier for an array in the document.
JsonArray ๐Ÿ”’
An array in the JSON document (using RGAList).
JsonCrdt
Collaborative JSON document CRDT.
JsonCrdtDelta
Delta for JSON CRDT operations.
JsonObject ๐Ÿ”’
An object (map) in the JSON document.
JsonPath
A path into a JSON document.
ObjectChange
ObjectField ๐Ÿ”’
A field in an object that tracks concurrent values.
ObjectId
Unique identifier for an object in the document.
ValueId
A unique identifier for a field value (for multi-value tracking).

Enumsยง

JsonValue
A JSON value that can be stored in the CRDT.
PathSegment
A segment in a JSON path.