add in-place patching and patch read from stdin.  enables use of

jsonpatch in a shell script like so:

cat <<EOT | jsonpatch -i a.json
[{"path": "/foo", "value": "baz", "op": "replace"}]
EOT

which will edit a.json in-place and leave a backup in a.json.orig.