How to Add Comments to JSON? [Python 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 Python code was automatically generated from the How to Add Comments to JSON?.
Loading...