Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.




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

Search: