curl -s https://api.github.com/repos/stedolan/jq/issues?per_page=2 | jq '[ .[] | { title: .title, number: .number } ]' curl -s https://api.github.com/repos/stedolan/jq/issues?per_page=2 | jq '[ .[] | { title, number } ]'
map({title, number})
[ .[] | <something> ]
For example, map() operates on a stream of arrays. That kind of doubling of iteration can be confusing at first.