ajson
Execute JSONPath on JSON objects. tldr-pages
On several platforms
Several platforms
Read JSON from a file and execute a specified JSONPath expression
ajson '$..json[?(@.path)]' path/to/file.jsonIdentifyRead JSON from stdin and execute a specified JSONPath expression
cat path/to/file.json | ajson '$..json[?(@.path)]'IdentifyRead JSON from a URL and evaluate a specified JSONPath expression
ajson 'avg($..price)' 'https://example.com/api/'IdentifyRead some simple JSON and calculate a value
echo '3' | ajson '2 * pi * $'Identify