Can comments be used in JSON?
Rajanikant Hawaldar
Select an image from your device to upload
Even though JSON looks a lot like JavaScript, it is not a computer language. JSON can only hold data, so it can't hold notes.You can use comments to add notes, explanations, or directions to your code or data. The only difference is that JSON doesn't have any code for comments like JavaScript, Python, or XML do. There will be an error or the comment will be viewed as data if you put it in your JSON data.
No, comments can’t be used in JSON — it only supports data, not annotations. If you need explanations, keep them outside the file. It’s like [Tower Boxes](https://packnbag.com.au/collections/tower-boxes "Tower Boxes") — everything inside must be neatly organized, with no extra clutter allowed! ??...
No.
The JSON should all be data, and if you include a comment, then it will be data too
JSON does not support comments. It was also never intended to be used for configuration files where comments would be needed.