This is simple CLI tool to create JSONPatch files and apply JSONPatch files to json.
npm install @shaveko/jsonpatch
See http://jsonpatch.com/
jsonpatch diff -o
jsonpatch apply -o