News for hackers. Stuff that matters.
Re:Time to retire the CSV? by cogman10 on Wednesday August 18, 2021 @12:10PM (#28223300)
Nope, that's CSV without the drawbacks of CSV. That's CSV that can have special characters and doesn't suffer from delimiter problems.

When someone says "Maybe we can fix CSV" this is what you should do instead of trying to "fix" CSV.

Re:Time to retire the CSV? by mongol on Wednesday August 18, 2021 @01:18PM (#28224343)
Interesting. This is JSON++ somehow. What should it be called? Line-oriented JSON? Row-JSON?
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).