Expand description
Utilities for converting between JSON values and Automerge documents.
Functionsยง
- auomerge_
doc_ from_ json - Create a document using batch initialization, preserving Text objects.
- hydrate_
to_ json - Convert automerge hydrate::Value to serde_json::Value.
- hydrate_
to_ json_ with_ rich_ text - Serialize a whole Automerge document to JSON, converting rich-text
Textobjects (stored under thecontentproperty) into structured spans arrays so that marks and block markers survive the round-trip.