Live data from Hacker News

Show HN: Catj – A new way to display JSON files

github.com

1–10 of 127 posts

Re: Show HN: Catj – A new way to display JSON files

#3

Just curious, what would be the use case for something like this?

I could see it being useful when using grep or writing awk scripts. For the latter you usually have to carry around some state if you want to deduce the path to a desired leaf node.

I could also see it useful for just finding the index of a particular array entity.

Re: Show HN: Catj – A new way to display JSON files

#6
post #5

Have you seen gron[0]? It's similar: flattens JSON documents to make them easily greppable. But it also can revert (ie, ungron) so you can pipe json to gron, grep -v to remove some data, then ungron to get it back to json. [0] https://github.com/tomnomnom/gron

Actively developed and written in Go.

The project linked to is from 2014 with last update in 2015.and it is on NPM...

What is left to say? Thank you!

Re: Show HN: Catj – A new way to display JSON files

#8

Just curious, what would be the use case for something like this?

Author here. I use it all the time when working with jq [1] to find the path of the nodes that I want to select or filter. It also makes it much easier to understand the structure of deeply nested JSON files.

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

Post reply on HN