5 ms·
jwalk parses JSON into a stream of TSV records: https://github.com/shellbound/jwalk/ https://github.com/shellbound/jwalk/
by sstephenson 7y ago
jwalk parses JSON into a stream of TSV records: https://github.com/shellbound/jwalk/ https://github.com/shellbound/jwalk/
- uhhyeahdude 7y agoCRUSH looks interesting, but you’ll have to poke around to find out what the tool(s) can do: https://github.com/google/crush-tools/blob/wiki/CrushTutorial.md https://github.com/google/crush-tools/blob/wiki/CrushTutoria...
- DonHopkins 7y ago>parses large documents slowly, but steadily, in memory space proportional to the key depth of the document If parsing JSON with shell scripts and awk is your idea of the most ideal way to "slowly, but steadily" get the job done. https://github.com/shellbound/jwalk/blob/master/lib/jwalk/commands/parse.awk#L137 https://github.com/shellbound/jwalk/blob/master/lib/jwalk/co... I know that everything looks like a nail if your only tool is a hammer, and it's fun to nail together square wheels out of plywood, but there are actually other tools out there with built-in, compiled, optimized, documented, tested, well maintained, fully compliant JSON parsers.
- bradknowles 7y agoGron -- Make JSON Greppable https://github.com/TomNomNom/gron https://github.com/TomNomNom/gron