Read JSON from stdin and execute a specified JSONPath expression

ajson

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

click the source code to copy