2 ms·
By doing that, you've now added more data to the object. It'd be like doing <tag comment='bar' /> in XML - the actual data has changed. So you'd end up definin
by MichaelGG 13y ago
By doing that, you've now added more data to the object. It'd be like doing <tag comment='bar' /> in XML - the actual data has changed.
So you'd end up defining some well-known comment name. But then you can't serialize arbitrary data structures, because they might conflict. So that gets complicated.
After everything, the JSON spec could have allowed comments to stay in. Instead, the author went off on some nonsense reasoning about incompatibility.