News for hackers. Stuff that matters.
Re:Xee: A Modern XPath and XSLT Engine in Rust by bbkane on Friday March 28, 2025 @06:33PM (#43510566)
I also don't think there's a specification written for the jq query language, unlike https://jmespath.org/ , which as you mentioned also has more client libraries.

I too am probably going to embed jmespath in my app.I need it to allow users to fill CLI flags from config files, and it'll replace my crappy homegrown version ( https://github.com/bbkane/warg/blob/740663eeeb5e87c9225fb627... )

Re:Xee: A Modern XPath and XSLT Engine in Rust by crabique on Friday March 28, 2025 @09:24PM (#43511858)
There's https://github.com/itchyny/gojq which is pretty popular, even GitHub CLI embeds it for their --jq filter.
Re:Xee: A Modern XPath and XSLT Engine in Rust by mdaniel on Friday March 28, 2025 @10:10PM (#43512114)
gojq is also my favorite for two "day to day" reasons:

- the error messages are night and day better than C-jq

- the magick of $(gojq --yaml-input), although I deeply abhor that it is 10 characters longer than "-y"

It's worth mentioning https://github.com/01mf02/jaq (MIT) because it actually strives to be an implementation of the specification versus just "execute better" as gojq does

Re:Xee: A Modern XPath and XSLT Engine in Rust by wwader on Saturday March 29, 2025 @05:46AM (#43514140)
The jaq author is working on a formal specification of jq https://github.com/01mf02/jq-lang-spec. I think it has also help that there are several implementations of jq now like, gojq, jaq and jqjq, that has helped finding edge cases and weird behaviours.