# jq

Apr 26, 2022

https://stedolan.github.io/jq/

Great tool for filtering, formatting, and outputting json.

A bit cryptic though.

jq appears to be largely unmaintained at this point, which is sad

• convert json to csv, something I modified from stack overflow:
cat some.json | jq -r '(map(keys) | add | unique) as $cols | map(. as$row | $cols | map($row[.])) as $rows |$cols, \$rows[] | @csv'


JBOL is a collection of jq modules you can install. this is an example of some of the powerful stuff you can do with jq, I understand very little of it

↑ up