curl -s 'https://dummyjson.com/quotes?limit=2' | npx ts-node jq.ts
Returns the quotes array.
curl -s 'https://dummyjson.com/quotes?limit=2' | npx ts-node jq.ts '.quotes'
Returns the quotes array.
curl -s 'https://dummyjson.com/quotes?limit=2' | npx ts-node jq.ts '.["quotes"]'
Returns the second quote in the quotes array.
curl -s 'https://dummyjson.com/quotes?limit=2' | npx ts-node jq.ts '.quotes | [1]'