News for hackers. Stuff that matters.
Re:Gron – Make JSON Greppable by barumi on Friday November 06, 2020 @09:15AM (#25007698)
> 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?

Re:Gron – Make JSON Greppable by latortuga on Friday November 06, 2020 @09:36AM (#25007835)
The linked readme demonstrates gron outputting search results as json.