jsonpatch

Apply JSON-Patches (RFC 6902) to modify JSON documents.

pipmacoslinuxwindows
Try with needOr install directly
Source

About

Apply JSON-Patches (RFC 6902)

Commands

jsonpatch

Examples

apply a patch file to a JSON document$ jsonpatch document.json patch.json
update specific fields in a JSON file$ jsonpatch config.json changes.json > updated.json
merge JSON changes into an existing file$ jsonpatch original.json updates.json -o result.json
apply JSON patch from standard input$ cat patch.json | jsonpatch document.json -
validate and test JSON patch operations$ jsonpatch --validate patch.json document.json