jq
jsonをいい感じにフォーマットするコマンド
-r
raw output
-c
compact (not pretty print)
--monochrome-output
色つけない
よく使うやつ
Arrayの一部フィールドのみ抽出
jq 'map(.foo)'
Arrayの一部フィールドのみ表示
jq 'map(select(.foo))'
Objectのフィールドのみ抽出
jq 'select(.foo)'
特定のフィールドを削除
jq 'del(.hogehoge)'