Can comments be used in JSON? -
can use comments inside json file? if so, how?
i don't believe can have actual comment. json should data, , if include comment, data too.
you have designated data element called "_comment"
(or something) ignored apps use json data.
you better having comment in processes generates/receives json, supposed know json data in advance, or @ least structure of it.
but if decided to:
{ "_comment": "comment text goes here...", "glossary": { "title": "example glossary", "glossdiv": { "title": "s", "glosslist": { "glossentry": { "id": "sgml", "sortas": "sgml", "glossterm": "standard generalized markup language", "acronym": "sgml", "abbrev": "iso 8879:1986", "glossdef": { "para": "a meta-markup language, used create markup languages such docbook.", "glossseealso": ["gml", "xml"] }, "glosssee": "markup" } } } } }
Comments
Post a Comment