3 ms·
GoAWK's CSV mode is a great addition to AWK. Have you thought about adding a JSON mode, too, to get an AWK-flavored alternative to jq? Edit: I see that you hav
by nequo 4y ago
GoAWK's CSV mode is a great addition to AWK. Have you thought about adding a JSON mode, too, to get an AWK-flavored alternative to jq?
Edit: I see that you have: https://github.com/benhoyt/goawk/issues/152 https://github.com/benhoyt/goawk/issues/152
- benhoyt 4y agoYeah, my comment there more or less sums up the thought I've put in so far. AWK doesn't really have nested data structures, but a lot of JSON / JSON lines is fairly flat, so it may work. It shouldn't be too hard ... though as I've noted there, there are a few tricky design issues to work though. Hope to come back to this at some point!