Comment Comment by koolba JSON serialized without extra white space with one line per record is superior to CSV.If you want CSV-ish, enforce an array of strings for each record. Or go further with actual objects and non-string types.You can even jump to an arbitrary point and then seek till you see an actual new line as it’s always a record boundary.It’s not that CSV is an invalid format. It’s that libraries and tools to parse CSV tend to suck. Whereas JSON is the lingua franca of data. parent koolba 1 year ago
If you want CSV-ish, enforce an array of strings for each record. Or go further with actual objects and non-string types.
You can even jump to an arbitrary point and then seek till you see an actual new line as it’s always a record boundary.
It’s not that CSV is an invalid format. It’s that libraries and tools to parse CSV tend to suck. Whereas JSON is the lingua franca of data.