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:
Ben Jackson 2020-03-21 15:10:07 +00:00
commit d42fd51f35
8 changed files with 134 additions and 6 deletions

View file

@ -609,6 +609,11 @@ the Getting Started section of the [Vimspector website][website].
For full explanation, including how to use variables, substitutions and how to
specify exception breakpoints, see [the docs][vimspector-ref].
The JSON configuration file allows C-style comments:
* `// comment to end of line ...`
* `/* inline comment ... */`
Current tested with the following debug adapters.
## C, C++, Rust, etc.