What happens if you tell GitHub it's JSON
{
"hello": "world" // I want my comments!
}
Use jsonc
as the language instead
Or just tell GitHub it's JavaScript
{
"hello": "world" // I want my comments!
}
What happens if you tell GitHub it's JSON
{
"hello": "world" // I want my comments!
}
Use jsonc
as the language instead
Or just tell GitHub it's JavaScript
{
"hello": "world" // I want my comments!
}
{ | |
"hello": "world" // I want my comments! | |
} |
cool!
Would be great to have key-value syntax highlighting just for readability purposes.
@dantebarba one way to cheat it seems to be yaml
https://stackoverflow.com/a/58946269
{
"hello": "world" # I want my comments!
}
@CryDeTaan thanks!
Thanks! I just wrote about this here, and referenced you: Stack Overflow: Can comments be used in JSON?
Testing today:
```json
{
"hello": "world" // comment
}
```jsonc
{
"hello": "world" // comment
}
```json5
{
"hello": "world" // comment
}
testing
{
"test": 1234 // using jsonc
}