Cheatsheet: JQ
Basic operations
Identity operator(.)
Object Identifier-Index
Generic Object Index
Array operations
array index
array/string slice
Object Construction
select fields without renaming
select fields with renaming
concatenate fields
value as field name
Pipe
select from each element
Advanced
Filtering JSON objects based on the value of a specific key
Sorting JSON objects by key value
Grouping JSON objects based on a key value
Flattening nested JSON objects
Merging multiple JSON objects into one
map/to_entries/from_entries/with_entries
map_values - similar to map but works well for objects
to_entries - Convert from object to an array of key value paris
from_entries - convert from an array from key/value pairs to an object
with_entries combines it together
if/else and helper functions
if/else
if/elif/else
helper functions