JQ(1)                            User Commands                            JQ(1)

NAME
       jq - Command-line JSON processor

SYNOPSIS
       jq [OPTION...] FILTER [FILE...]

DESCRIPTION
       jq is like sed for JSON data - you can use it to slice and filter and
       map and transform structured data with the same ease that sed, awk,
       grep and friends let you play with text.

OPTIONS
       -c, --compact-output
              By default, jq pretty-prints JSON output. Using this option will
              result in more compact output by instead putting each JSON
              object on a single line.

       -n, --null-input
              Do not read any input at all. Instead, the filter is run once
              using null as the input. This is useful when using jq as a
              simple calculator or to construct JSON data from scratch.

       -r, --raw-output
              With this option, if the filter's result is a string then it
              will be written directly to standard output rather than being
              formatted as a JSON string with quotes.

       -f, --from-file <filename>
              Read filter from the file rather than from a command line, like
              awk's -f option. You can also use '#' to make comments.

       --indent <n>
              Use the given number of spaces (no more than 7) for indentation.

EXAMPLES
       jq '.foo'
              Input {"foo": 42, "bar": "less interesting data"}, output 42.

SEE ALSO
       The jq manual at https://jqlang.github.io/jq/manual/

AUTHOR
       Stephen Dolan <mu@netsoc.tcd.ie>
