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

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.



I'm with you. Why would anyone intentionally create data like that?


I'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.


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




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

Search: