3 ms·
…ndjson is streamable, too…
by deathanatos 2y ago
…ndjson is streamable, too…
- jszymborski 2y agoI like ndjson and jsonl just fine, but unless I need a more complicated structure, it's not worth the extra hassle of parsing JSON.
- deathanatos 2y ago… what concrete language are we talking about, here? In literally any language I can think of, hassle(json) < hassle(CSV), esp. since CSV received is usually "CSV, but I've screwed it up in a specific, annoying way"
- jszymborski 2y agoI'm thinking mostly of the computational complexity. But even ergonomically, in python, can read a csv like: import csv [row for row in csv.DictReader(f)] which imo is not less ergonomic than import json [json.loads(line) for line in f]