4 ms·
By the way, "Export to CSV" is the most meaningful feature you can add to any project, regardless of purpose.
by notjustanymike 4y ago
By the way, "Export to CSV" is the most meaningful feature you can add to any project, regardless of purpose.
- astrange 4y agoI've found JSON is extremely useful in command line tools, but with CSV people try to handwrite parsers for it that can't handle commas in fields.
- mt_ 4y agoThis is true, I even remember writing a few CSV files in Ansible, of all things, a few years ago.
- P5fRxh5kUvp2th 4y ago1. Most people are using tools 2. CSV parsers are easy to write I know I know, someone once said it was hard, everyone else wanted to be smart and started reporting it. What CSV is, is ambiguous. But if you're ingesting CSV generated by the export function of a tool, that's not ambiguous.
- bee_rider 4y agoIt seems like, at least, converting a flat JSON record to CSV (or vise-versa) should be a one-liner in lots of cases. Usually I want CSV, it is because I'm playing around with data on the command line and doing grep/cut/and so on. If I has something that output json... that miller tool is supposed to be good for this sort of stuff I think. https://miller.readthedocs.io/en/latest/ https://miller.readthedocs.io/en/latest/
- astrange 4y agoUsually I use jq (https://stedolan.github.io/jq/ https://stedolan.github.io/jq/) though I think it has a newer fork now.