JAQ(1)

NAME
jaq - json2tsv awk query, a json2tsv convenience wrapper shellscript

SYNOPSIS
jaq [-n] [-u] awk expressions...

DESCRIPTION
jaq reads JSON data from stdin. The parsed nodes in the JSON data are then passed to awk(1) in the format:

    nodename<FIELD SEPARATOR>type<FIELD SEPARATOR>value<RECORD SEPARATOR>

See the OUTPUT FORMAT section of json2tsv(1) for a more detailed explanation.

The options are as follows:

-n  Show the indices for array types (by default off).

-u  Unbuffered: flush output after printing each value (by default off).

The options -r and -F '\x1f' and -R '\x1e' are passed to json2tsv(1).

ENVIRONMENT VARIABLES

LC_ALL
    This variable is set to the "C" locale(1) for the awk(1) program.

EXIT STATUS

EXAMPLES

    echo '{"url":"https://codemadness.org/"}' | \
    	jaq '$1 == ".url" { print $3 }'

SEE ALSO
awk(1), json2tsv(1)

AUTHORS
Hiltjo Posthuma <hiltjo@codemadness.org>