jq Playground
What's supported
Field/index access (.foo, .foo.bar, .foo?,
.[0], .[1:3], .[]), pipes (|), commas
(,), array construction ([...]), object construction
({a: .foo, b}, with correct cartesian-product semantics when a value produces
multiple outputs), arithmetic (+ - * / %, including string/array
concatenation), comparisons, and/or/not, and these
functions: length, keys, has, add,
min, max, unique, reverse,
sort, sort_by, group_by, map,
select, empty, type, first,
last, to_entries, from_entries, flatten,
range, tostring, tonumber, startswith,
endswith, contains, join, split,
ascii_downcase, ascii_upcase, recurse. Function
arguments use jq's own ; separator, e.g. range(1; 5). Not
supported: string interpolation, reduce/foreach,
variables (as $x), def, try/catch, path assignment
(|=, +=), regex functions, and @base64/@csv-style formatters.