3 ms·
On the other hand, comments were explicitly excluded from JSON by Crockford (with the thinking — probably correct — that they'd be abused to embed such things a
by masklinn 14y ago
On the other hand, comments were explicitly excluded from JSON by Crockford (with the thinking — probably correct — that they'd be abused to embed such things as parsing directives or other out-of-band content)
- TazeTSchnitzel 14y agoI believe he was correct at the time, he removed them once people started using them for parsing directives. (JSON hasn't always been frozen)
- angersock 14y agoHaving seen/used the rudimentary commenting mechanism in Wavefront .OBJ files (a 3D interchange format) to stuff in more modern information (tangents, additional UV channels, etc. etc.), I can say that comments can help a format live on well past its expiry date. That said, I will not pretend for a second that this is a good idea. Crockford did the right thing.