jq 1.7

  • jq 1.7 - https://news.ycombinator.com/item?id=37412698 - Sept 2023 (205 comments)

  • Have only recently started using JQ, and it's absolutely brilliant. I'm on wsl2/Ubuntu - just pipe any Json content to it, and you get an easy to read colour version rather than your regular monotone output (which seems incompatible with my brain).

    And you can then create queries to select certain keys - highly useful if you're dealing with monster documents, and customise the output of that (eg to reduce into just the info you need). Plus probably much more, but those are the features I've used so far. Big thanks to the Devs!

  • This is really great news. jq deserves an active team maintaining it. The new features (in particular pick()) look great.

    Just one tiny personal regret. I get GPT-4 to write almost all of my jq scripts for me, and it's going to stay stuck on that 2021 version for an unknown time going forward.

    I guess I could try and come up with some custom instructions that teach it about the new syntax!

  • Recently I needed to query something from a json document, but I just couldn't figure out how to express this in jq. In my spare time I'm working on a toy configuration language that is a superset of json, and expressing the query there was pretty straightforward, at least to me. So I added a mode to do that, and it comes in pretty handy once in a while now as a jq alternative.

    https://fosstodon.org/@ruuda/111120049523534027

  • I'm a bit out of the loop, is there an article explaining the death and rebirth of jq development, alluded to in the release notes?

  • For those pining for a similar yaml query tool for working through acres of config: https://github.com/mikefarah/yq

    jq is awesome and thanks to the new team for their recent efforts and energy, it massively appreciated.

  • Alternatively, https://fx.wtf/ is also a great interactive viewer with JavaScript filtering that I recently discovered through HN.

  • jq probably saved my life doing region builds at AWS with LPT. jq is such a good tool to know.

  • Nice to see this. I use jq a lot.