immutable-json-patch
Immutable JSON patch with support for reverting operations:
https://github.com/josdejong/immutable-json-patch
Input JSON
{ "baz": "qux", "foo": "bar" }
Input patch operations
[ { "op": "replace", "path": "/baz", "value": "boo" }, { "op": "add", "path": "/hello", "value": ["world"] }, { "op": "remove", "path": "/foo" } ]
Apply JSON patch
Output JSON
loading...
Reverse patch operations
loading...