JustBash.Commands.Jq (JustBash v0.4.0)
View SourceThe jq command - command-line JSON processor.
Supports:
- Identity filter (.)
- Object index (.foo, .foo.bar)
- Array index (.[0], .[-1])
- Array slice (.[2:5])
- Array/Object iterator (.[], .foo[])
- Pipe operator (|)
- Optional operator (.foo?)
- Multiple outputs (,)
- Object construction ({a: .b})
- Array construction ([.foo, .bar])
- Comparison and boolean operators (==, !=, <, >, and, or, not)
- Built-in functions: keys, values, length, type, has, in, map, select, empty, add, first, last, nth, flatten, reverse, sort, sort_by, unique, unique_by, group_by, min, max, min_by, max_by, contains, inside, split, join, ascii_downcase, ascii_upcase, ltrimstr, rtrimstr, startswith, endswith, tostring, tonumber, tojson, fromjson