Skip to content

Instantly share code, notes, and snippets.

@hitrust
Forked from MoOx/comments-trick.json
Created June 5, 2020 03:12
Show Gist options
  • Save hitrust/d7e25ff3e8d8bd5475b2a43bbbb22fd7 to your computer and use it in GitHub Desktop.
Save hitrust/d7e25ff3e8d8bd5475b2a43bbbb22fd7 to your computer and use it in GitHub Desktop.
How to make comment in JSON file
{
"//field": "These 'double quote' 'double quote' are used as comments, because JSON doesnt' allow comment",
"field": {},
"#another-field": "Another comment",
"another-field": {},
"/*stuff": "Be careful to use them when you have full control of the content :)",
"stuff": [],
"bla": "bla"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment