Expand description
JSON format backend (via serde_json).
Structs§
- Json
Document - Lossless JSON source document. The parsed node tree stores byte spans for every value/member, so editors can replace only the requested span while retaining untouched ordering, whitespace, escapes, and number spelling.
Functions§
- append_
array_ item_ preserving - Append one JSON array item while retaining the existing array’s trailing whitespace and all bytes outside the insertion point.
- load
- remove_
array_ item_ preserving - Remove a keyed object from a JSON array without rebuilding the document.
- save
- set_
preserving - Set a JSON value at
pathwhile retaining every byte outside the edited region. JSON has no comments, but this still preserves key order, whitespace, line endings, escapes, and untouched number spellings. - unset_
preserving - Remove one existing JSON member or array item while preserving the rest of the source layout. Removing the root value is intentionally unsupported.