Forrest logo
back to context overview

ajson

List of commands for ajson:

  • ajson:tldr:1a341 ajson: Read some simple JSON and calculate a value.
    $ echo '${3}' | ajson '${2 * pi * $}'
    try on your machine
    explain this command
  • ajson:tldr:cd1cd ajson: Read JSON from a file and execute a specified JSONPath expression.
    $ ajson '${$--json[?(@-path)]}' ${filename-json}
    try on your machine
    explain this command
  • ajson:tldr:d0404 ajson: Read JSON from `stdin` and execute a specified JSONPath expression.
    $ cat ${filename-json} | ajson '${$--json[?(@-path)]}'
    try on your machine
    explain this command
back to context overview