How to Add Comments to JSON? [JavaScript/AJAX Code]

In short, comments in the form // ... or / * ... * / are not allowed in JSON, but you can have a special element in your JSON file called "_comment", for example, that will contain your comment. The JSON API endpoint must ignore this special JSON comment element. See an example of including comments in JSON below on the Content tab. The JavaScript/AJAX code was automatically generated from the How to Add Comments to JSON?.
Loading...