11 ms·
> I wrote a small script to convert CSVs to JSON strictly to use jq on the output Note that you can use jq to consume simple CSVs (and produce them) without an
by darrenf 5y ago
> I wrote a small script to convert CSVs to JSON strictly to use jq on the output
Note that you can use jq to consume simple CSVs (and produce them) without anything else. There’s an entry in the cookbook wiki https://github.com/stedolan/jq/wiki/Cookbook#convert-a-csv-file-with-headers-to-json https://github.com/stedolan/jq/wiki/Cookbook#convert-a-csv-f... - I posted some usage examples a few months back https://news.ycombinator.com/item?id=27379423 https://news.ycombinator.com/item?id=27379423