Comments in JSON in Visual Studio

1

, the following message appears to me: Comments are not permitted in JSON.

Does anyone know how to explain this to me?

    
asked by anonymous 19.01.2018 / 07:36

1 answer

0

In JSON, if you include a comment it will also be a given;

In your JSON file, you could create a comment of this form;

"_comentario" : "seu comentario",

And you can ignore the value when it will be used in your application;

Because it was defined as such by the Standard ECMA - 404, 2nd Edition - December - 2017 ,

That a JSON object starts with a closing key "{" opening and ending with a key "}". Each name is followed by: (colon) and the name / value pairs are followed by, (comma).

See more information at the link below:

link

    
19.01.2018 / 11:55