Hacker News new | comments | ask | show | jobs | submit login
Show HN: Command-line JSON processing tool (github.com)
32 points by actualdragon 70 days ago | hide | past | web | favorite | 4 comments

I think the interactive mode is a really neat feature. Looks like this tool fx was likely inspired a bit by jq [1] which is a great library as well. Mainly the dot identity syntax made me think fx might have gotten inspiration from jq. fx definitely seems more approachable to current JS developers than jq. Overall great job on the library!

[1]: https://stedolan.github.io/jq/

The links at the bottom are all interesting. Specially jl[1], which uses a functional, Haskell-like language.

The wrong one is the link to jid, which has a very poor language that claims to be like jq, but actually is just dot syntax and nothing else. jiq[2], my fork, has real jq underneath, so may be better, although it has some rough edges waiting to be polished.

[1]: https://github.com/chrisdone/jl [2]: https://github.com/fiatjaf/jiq

It's kinda odd to write imperative expressions like for-loops all in one line without brackets, also the necessity of 'this'. I guess these are the downsides of using a Javascript-like language.

I was about to write this off as a jq clone but it is MUCH more that than! Looks pretty cool, I've installed it for the next time I work with JSON in the CLI.

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