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

> Can jq do what gron does?

It really depends on what you want to do, and thus what think gron does.

If all you want to do is search for properties with a given value then yes, jq does that very well.

Unlike gron, jq even allows users to output search results as valid json docs. Hell, jq allows users to transform entire JSON docs.

However, if all you want to do is expand the JSON path at each symbol then I don't know if jq supports that usecase. But then again, why would anyone want to do that?



The linked readme demonstrates gron outputting search results as json.




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

Search: