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

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -