pub fn apply_patch(doc: &Value, ops: &[PatchOp]) -> Result<Value, PatchError>
Apply ops in order to a copy of doc. Either every operation applies or the document is returned unchanged inside the error.
ops
doc