3 ms·
Should serialized data allow comments though? I feel that's considered Metadata that could be connoatated elsewhere.
by mastrsushi 6y ago
Should serialized data allow comments though? I feel that's considered Metadata that could be connoatated elsewhere.
- emptyparadise 6y agoIdeally no, but with JSON being used as a configuration file format and being written by humans, I don't think we have much of a choice.
- whizzter 6y agoMany JSON parsers has flags to enable comment parsing (and someone went ahead and made a "standard" called JWCC that seems to be more or less what these parsers accept) I think that is a good tradeoff, JSON being strict for data interop with the possibility of enabling comments for those cases where people use it for configuration (and specifying it as JWCC)
- marcosdumay 6y ago> Should serialized data allow comments though? Hum... Why not? Serialized data can be written and read by humans too. Besides, if comments are out of scope, there is no reason for them to be textual either.