curl -s https://api.example.com | jq -r '.items[].name'

Category: Web App Development

curl -s https://api.example.com | jq -r '.items[].name'

List every item name from a JSON API response

Fetches the API response and jq prints the name of each element in the items array, one per line. The -r flag strips the surrounding quotes for clean output. Swap .items[] for any path that matches your response shape.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.