Hacker News new | ask | show | jobs
by adamgordonbell 1520 days ago
Oh, I wrote that. I think I get what you mean. There are two different things, and they aren't being delineated. How would you explain it?

I don't know how jq works internally and in my mental model [] maps into the json array and also can wrap things back into an array. So that [.[]] unwraps and then rewraps a JSON array, sort of like how [.[].title] is the same as map(.title).