Apr 26, 2022


Great tool for filtering, formatting, and outputting json.

A bit cryptic though.

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

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