3 ms·
JSON not having comments is a deliberate design decision (a feature if you want). The reason is if it supported comments, they would have ended up being used to
by rdtsc 14y ago
JSON not having comments is a deliberate design decision (a feature if you want). The reason is if it supported comments, they would have ended up being used to for meta languages and parse directives that would have created JSON documents that could not be parsed or processed by all JSON parsers -- it would have fragmented the JSON ecosystem quite a bit. So it might seem like an accidental bug or omission but it is not it is on purpose and I agree with it.