ajson

Executes JSONPath on JSON objects. More information: https://github.com/spyzhov/ajson. Read JSON…

ajson

Executes JSONPath on JSON objects. More information: https://github.com/spyzhov/ajson.

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

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

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

echo '{{3}}' | ajson '{{2 * pi * $}}'

Также может быть вам интересно:
КодТрюки BashНастройкиТерминал/Консоль
← airshare alacritty →