usage: json [-h] [--debug] [--pretty] [-v] [--no-unicode-escape] COMMAND ... JSONPath, JSON Pointer and JSON Patch utilities. positional arguments: COMMAND path Find objects in a JSON document given a JSONPath. pointer Resolve a JSON Pointer against a JSON document. patch Apply a JSON Patch to a JSON document. options: -h, --help show this help message and exit --debug Show stack traces. (default: False) --pretty Add indents and newlines to output JSON. (default: False) -v, --version Show the version and exit. --no-unicode-escape Disable decoding of UTF-16 escape sequence within paths and pointers. (default: False) Use [json COMMAND --help] for command specific help. Usage Examples: Find objects in source.json matching a JSONPath, write them to result.json. $ json path -q "$.foo['bar'][?@.baz > 1]" -f source.json -o result.json Resolve a JSON Pointer against source.json, pretty print the result to stdout. $ json --pretty pointer -p "/foo/bar/0" -f source.json Apply JSON Patch patch.json to JSON from stdin, output to result.json. $ cat source.json | json patch /path/to/patch.json -o result.json