News for hackers. Stuff that matters.
Re: by bipvanwinkle on Tuesday March 19, 2024 @05:34PM (#39760490)
Looks awesome, one of my frustrations with jq has always been that I can't see what data I'm going to be retrieving until I run it.
Re: by tejtm on Tuesday March 19, 2024 @05:57PM (#39760714)
This can help with seeing the data structure which might help with incrementaly creeping up on what values you are looking for.

https://github.com/TomConlin/json_to_paths

Re: by samuell on Wednesday March 20, 2024 @05:54AM (#39764499)
... which seems quite similar to gron [1]?

[1] https://github.com/tomnomnom/gron

Re: by pdimitar on Wednesday March 20, 2024 @10:26AM (#39767045)
Does not seem to be the same as `gron` from what I can see, `gron` makes JSON greppable and diffable, whereas `json_to_paths` seems to be outputting `jq` paths for each element, making it easy to select it.
Re: by tejtm on Wednesday March 20, 2024 @04:41PM (#39771764)
Unexpected Betteridge's law of headlines ...