News for hackers. Stuff that matters.
Re:JSON with Commas and Comments by wruza on Tuesday February 23, 2021 @06:19AM (#26236035)
Formatting would be lost too (multiple newlines, array formatting, wrap limits, etc), and the order of keys. There are two separate tasks: comment json for a human and ignore that on parse(), and maintain pretty-json with all its usefulness programmatically with parseWithSyntaxStructure(). We shouldn’t mix them into one single problem, because in one case you just want multiple readers (a human and a computer) and in the other you want to rich-edit a human representation on its own.

There are no comments on this comment yet.