jq CLI Cheat Sheet
Installation
General Commands
Output a JSON file, in pretty-print format
Pretty-print API output
Output all elements from arrays (or all key-value pairs from objects) in a JSON file
Read JSON objects from a file into an array, and output it (inverse of jq .[]
)
Output the first element in a JSON file