Commenting functionality for JSON files

Problem description:
I would like to suggest adding a feature similar to VSCode’s commenting functionality for JSON files to make it easier to leave comments within the code.

1 Like

You can not comment in a JSON file as it is not part of the syntax.

In VsCode there is JSON with comments

That is part of VS code and not JSON.

But still it would be a nice addition…

Maybe submit a feedback request

1 Like

Maybe use threads? I think you select code, right-click and start thread

I meant commenting it out

@GoodVessel92551 This is the place for feedback/feature requests…

I agree that this would be good, but also you can’t comment in JSON. As far as I know, you can’t do this in VSC either - I think you have an extension for it.

1 Like

@DillonB07 This was a bug report

1 Like


VSCode supports it…

1 Like

You can just do the following:

{
  "data": {
    "__comment": "The name of the person",
    "name": "John Doe",

    "__comment": "The person's age",
    "age": 43,

    "__comment": "Their website",
    "website": "https://example.com"
  }
}
1 Like

How would you comment out on an object???

there are no comments in JSON. But you can make keys comments like people said before. And in JS just use // or a multi line comment /* ... */

1 Like

I meant commenting out a key then, to put it back.
Hmm, check VSCode

1 Like

There are no commments in JSON so you cant.

1 Like