Can comments be used in JSON ? 1

Can comments be used in JSON ?

{
  "//": "Some browsers will use this to enable push notifications.",
  "//": "It is the same for all projects, this is not your project's sender ID",
  "gcm_sender_id": "1234567890"
}

Here is what the above code is Doing:
1. We are creating a new file called manifest.json
2. We are writing the following code to the file:
{
“//”: “Some browsers will use this to enable push notifications.”,
“//”: “It is the same for all projects, this is not your project’s sender ID”,
“gcm_sender_id”: “1234567890”
}
3. We are closing the file

Similar Posts