Skip to main content

Module automerge_json

Module automerge_json 

Source
Expand description

Utilities for converting between JSON values and Automerge documents.

Functionsยง

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.
populate_automerge_from_json
Populate an automerge document from a JSON value.