A patch operation: JSON Patch's (RFC 6902) add, remove, replace and
test, plus substitute — swap the find fragment, found exactly once
in the text at a bitmark path, for the value (the one op outside the RFC).
add creates or replaces a member (a JSON key, $body, $footer); at an
index (id[1], $card[1][-][1], $card[2]) it inserts before the element
there, an index equal to the count — or [-] on a JSON path — being the
end; a tag path without an index adds an occurrence after the last.
replace needs an existing target. test changes nothing: the target
must read as the value (text with whitespace collapsed; a JSON value by
equality; absent as empty / null), else patch-conflict.
A patch operation: JSON Patch's (RFC 6902)
add,remove,replaceandtest, plussubstitute— swap thefindfragment, found exactly once in the text at a bitmark path, for the value (the one op outside the RFC).addcreates or replaces a member (a JSON key,$body,$footer); at an index (id[1],$card[1][-][1],$card[2]) it inserts before the element there, an index equal to the count — or[-]on a JSON path — being the end; a tag path without an index adds an occurrence after the last.replaceneeds an existing target.testchanges nothing: the target must read as the value (text with whitespace collapsed; a JSON value by equality; absent as empty / null), elsepatch-conflict.