Hacker News new | past | comments | ask | show | jobs | submit login

Not to distract from your point, but in this specific instance I'd probably use

  map({title, number})
instead

  [ .[] | <something> ]



Side note, but one of the hardest things about jq is to realize all the operators operate on streams of values.

For example, map() operates on a stream of arrays. That kind of doubling of iteration can be confusing at first.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: