News for hackers. Stuff that matters.
Re:Time to retire the CSV? by cogman10 on Wednesday August 18, 2021 @01:27PM (#28224460)
It's just JSON. It's not an extension to the spec, it's a subset of the spec. If anything, you could say it's JSON--.
Re:Time to retire the CSV? by mongol on Wednesday August 18, 2021 @01:41PM (#28224620)
Well, to work as a CSV-like JSON, i.e greppable similar to a CSV it needs formatting with linebreaks as above. It is still completely valid JSON. ++ is the formatting convention.
Re:Time to retire the CSV? by cogman10 on Wednesday August 18, 2021 @01:54PM (#28224763)
Gotcha.

Yeah, it's never really come up as it's generally trivial to convert into this format from either a text editor or sed (Look for the `],[` and put a new line after the comma).