3 ms·
Comments in JSON are easy. You just strip them out before sending to a strict parser. Some parsers even support them out of the box. In fact they're so easy
by reificator 6y ago
Comments in JSON are easy. You just strip them out before sending to a strict parser. Some parsers even support them out of the box.
In fact they're so easy they were already in JSON, and then later removed.
> I removed comments from JSON because I saw people were using them to hold parsing directives, a practice which would have destroyed interoperability. ~Douglas Crockford
- polymonster 6y agoI’m using this json like data format.. supporting json and json5 plus a few more features, including comments https://github.com/polymonster/jsn https://github.com/polymonster/jsn