Support c-style comments in JSON
Debate rages about whether JSON should have comments. The specification says it shouldn't but the author of JSON suggested that if you want to use JSON for configuration, then pipe it through jsmin before parsing. So that's what we do, using a tiny JSON minifier from https://github.com/getify/JSON.minify/tree/python Closes #135
This commit is contained in:
parent
9393c1d80e
commit
d42fd51f35
8 changed files with 134 additions and 6 deletions
|
|
@ -1,7 +1,8 @@
|
|||
{
|
||||
"configurations": {
|
||||
// This is a comment.
|
||||
"run legacy vscode-python": {
|
||||
"adapter": "vscode-python",
|
||||
"adapter": "vscode-python" /* coment goes here too */,
|
||||
"configuration": {
|
||||
"request": "launch",
|
||||
"type": "python",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue