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.
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
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/