CmdID

CmdID / Commands

ajson

Execute JSONPath on JSON objects. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Read JSON from a file and execute a specified JSONPath expression

ajson '$..json[?(@.path)]' path/to/file.jsonIdentify

Read JSON from stdin and execute a specified JSONPath expression

cat path/to/file.json | ajson '$..json[?(@.path)]'Identify

Read JSON from a URL and evaluate a specified JSONPath expression

ajson 'avg($..price)' 'https://example.com/api/'Identify

Read some simple JSON and calculate a value

echo '3' | ajson '2 * pi * $'Identify