Skip to main content

Module automerge_json

Module automerge_json 

Source
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 Text objects (stored under the content property) into structured spans arrays so that marks and block markers survive the round-trip.