Hacker News new | ask | show | jobs
by gerbilly 2756 days ago
I wanted to like jq, but honestly, I can't figure out it's crazy syntax.
2 comments

If you're into JavaScript (or LiveScript) or functional programming, you might find ramda-cli[1] more palatable. Disclaimer: I've created it.

[1]: https://github.com/raine/ramda-cli

it's a bit weird, but it's perfect for writing quick shell one liners with once you get used to it. no regular scripting language can match it for that
awk, sed?
The braces make that more difficult, awx and sed can work with YAML more easily, but awk works best on column oriented data, and YAML and JSON are more row oriented.
For extracting a value out of json where the keys can arbitrarily re-order and you have nested maps containing the same key names? No thanks.
I was providing them as examples of things "perfect for writing quick shell one liners", not good JSON parsers.