pub fn edit(root: &Value<'_>, at: &[(usize, Edit<'_>)]) -> Result<Vec<u8>>Expand description
Apply every edit in at to root and answer the document that results.
The offsets are into root and come from Value::offset_in. They may be
in any order. Two edits at the same offset is a caller bug and the first one
wins, and an edit inside a value that another edit replaces or removes is
dropped, for the reason in the module doc.