3 ms·
Yes, thanks, but are the comments stripped out when you read the JSON? Or are they still accessible, so they can be written back when a program modifies the JSO
by amelius 6y ago
Yes, thanks, but are the comments stripped out when you read the JSON? Or are they still accessible, so they can be written back when a program modifies the JSON slightly?
- kroltan 6y agoThat's a software problem moreso than a parsing problem. Plenty of software that uses regular JSON also strips unused data when writing back to a file it read because internally it transforms the document into a data structure with no space dedicated for unknown data. It would be up to the software, or a very strict standard or library, to preserve unknown/unused data.