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

I think my dream is yq but with JSONata and an interactive editor at the command line.

I love yq and jq, but imo the core feature they’re missing is queryability. The problem is that afaia the jq syntax doesn’t support things like “where value = x”.

There’s another lesser known but imo better querylang called JSONata [0], which is basically a querying and reshaping syntax for structured data.

I’m working on this in my spare time but if any know of one that exists so that I don’t have to GO (lang) down a rabbit hole, please do share.

[0] https://jsonata.org/



jq and yq both support filtering with select operator


Okay I must have forgotten this, now that you point it out. But that’s nowhere near as elegant as compact compared with how JSONata handles it. The ideal tool probably lets you choose. Xpath, jq, jsonata, etc




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: