Hacker News new | past | comments | ask | show | jobs | submit login

To be frank the ascendance of jq has always seemed weird to me. There are many alternatives that felt much more natural, as this thread demonstrates.

JSONata remains pretty obscure but it's been my favorite JSON query/mangling DSL for a while now: https://github.com/jsonata-js/jsonata.

jmespath is also quite natural, but I think it was hurt by reference implementation in Python, meaning it's quite slow. http://jmespath.org/




jq is simple to install, can handle large datasets (have used it to parse GB's of JSON data), and works well with bash/shell.


Yeah -- I've ended up defaulting to jq just because of its ubiquity, but many of these other tools have similar attributes without the esoteric nature of the jq DSL. It'd be great if something more natural came along and actually started to displace it.


I've never felt it was an unnatural API, but it can be hard to grok/remember. I was primarily using jq either to extract data from large JSON files or to concatenate a bunch of smaller JSON files into one, large file.

I think it can get a little weird as far as error handling goes, but I feel it's been pretty approachable.




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

Search: