Skip to main content

append_array_item_preserving

Function append_array_item_preserving 

Source
pub fn append_array_item_preserving(
    content: &str,
    path: &str,
    item: &Value,
) -> DocumentResult<String>
Expand description

Append one JSON array item while retaining the existing array’s trailing whitespace and all bytes outside the insertion point.