3 ms·
Well, as JSON doesn't have comments that's not really a problem :-) NB Not having comments is perhaps the biggest problem I have with JSON when it is used for
by arethuza 8y ago
Well, as JSON doesn't have comments that's not really a problem :-)
NB Not having comments is perhaps the biggest problem I have with JSON when it is used for things like configuration files that will be hand crafted. 99% of the JSON I work with is generated and consumed programmatically so comments aren't really an issue.
- jstimpfle 8y agoMy favourite way to go about comments is to have them inline, as first class data members. (Not that I think either JSON or XML are good ideas. Hierarchical structures are really hard to handle).
- qwerty456127 8y agoIsn't it very easy to add comments support to JSON? Why not just agree to allow /* ... */ anywhere inside it and add this feature to JSON parsers? Honestly I didn't even knew this is not supported to the moment. If nobody bothered so far, doesn't this mean only a tiny portion of people needs this?