33
JQLite
(lemmy.ml)
I prefer the native js/ts approach that is readable by humans and doesn't need an extra dependency:
const result = data.products
.filter(p => p.price > 1500)
.map(p => p.name);
Forget the dependency, I don't want another language in my code.
There exists JSONPath
Yeah, but the implementations are really sparse. JQuery sucked all of the air out of the room.
I much prefer JSONPath, although it's a little rough in some areas where JSON's design doesn't align 1:1 with XML and XPath.
Do you use it? Is there a good CLI tool for it? Every few years I get mighty sick of jq and go looking for an alternative, and I haven't found a good JSONPath implementation yet.
All about open source! Feel free to ask questions, and share news, and interesting stuff!
Community icon from opensource.org, but we are not affiliated with them.