3 ms·
I've used AWK to output (flat!) JSON in ETL pipelines, because it's blazingly fast and "zero" deps. But I'd never try to implement my own parser or output deep
by pphysch 3y ago
I've used AWK to output (flat!) JSON in ETL pipelines, because it's blazingly fast and "zero" deps.
But I'd never try to implement my own parser or output deeply nested JSON.
- jameshart 3y agoA useful tool for transforming JSON to and from a format that is more amenable to simple text tooling is gron: https://github.com/tomnomnom/gron https://github.com/tomnomnom/gron Takes all the tree and hierarchy management away, makes it so ordering doesn’t matter. If I’m generating JSON from batch scripts it’s my preferred tool (easier than fighting jq for many tasks)