catj
catj copied to clipboard
Displays JSON files in a flat format.
Could you add to the readme, or just discuss hear how this utility differs with https://github.com/tomnomnom/gron, and why you might choose one over the other?
Allow generation of json file from the `.dot.brackets[0]: colon` syntax. Reasoning: It would be then possible to use this as a basis for a plugin to config editors.
Thanks for `catj` ! Will it be possible to use it a node module sometime in the future ? Cheers !
to reproduce: _(warning: 180mb json file)_ ```sh curl "https://github.com/zemirco/sf-city-lots-json/blob/master/citylots.json" > citylots.json cat citylots.json | catj #
copy pasted from : https://news.ycombinator.com/item?id=20246727 ```sh #!/usr/bin/jq -jf jq -j ' [ [ paths(scalars) | map( if type == "number" then "[" + tostring + "]" else "." + ....