3 ms·
First of all, I have little sympathy for people who create JSON like that. You created a messy, hard to use JSON "schema", it should be little surprise to anyb
by jlarocco 11y ago
First of all, I have little sympathy for people who create JSON like that. You created a messy, hard to use JSON "schema", it should be little surprise to anybody that it's messy and hard to use.
FWIW though, jq can do the query, but I'm not going to spend the time doing it.
- djKianoosh 11y agoI'm with you. Why would anyone intentionally create data like that?
- fiatjaf 11y agoI've seen JSON like this many times, and I also hate it, but I'm hardly going to use jq to fiddle with JSON I've written myself.
- jlarocco 11y agoI don't really see what your complaint is. The problem you're describing isn't a shortcoming of jq and the other tools in the article, it's a shortcoming of the brain dead JSON encoding. If you need to process data like that, you'll have to console yourself to the fact it won't be process-able as a shell one-liner.