by coderholic · 10y ago · 0 comments
> I removed comments from JSON because I saw people were using them to hold parsing directives, a practice which would have destroyed interoperability. I know that the lack of comments makes some people sad, but it shouldn't.
via https://plus.google.com/+DouglasCrockfordEsq/posts/RK8qyGVaG...
Double quotes everywhere are more annoying to read than end tags. If we're going to invent nonstandard formats, why not remove the redundant tag name in the XML end tag. Problem solved.
https://github.com/rendaw/luxem
A perhaps lightly more rigorous specification:
https://github.com/Rendaw/luxemj/blob/master/src/main/resour...
It allows optional quotes and comments, plus trailing "," and element type specifications. I think it's easier to read and hand-write, as well as write a parser/generator.
Comments wouldn't be usefull (mostly) for data sent on the wire --and JSON is quite good for that-- but for configuration files, they're indispensable. INI (like git's) is way better of a configuration format than JSON. Easier both to read and to write.