Jq Cheatsheets
- related
- Command Line Tools
Get slice of data based on range of index
pbpaste | jq .data[0:4]
Count number of elements in array
pbpaste | jq '.data.appointments | length'
Select multiple fields from array of object
pbpaste | jq '.data.appointments[] | (.facility_id, .status)'