jsoncomments

Adding comments to a JSON file


Can you and what would be the best way to add comments to a JSON file?

I've used //comments and "_comment"


Solution

  • No, comments of the form //… or /*…*/ are not allowed in JSON. This answer is based on:

    Ref: https://stackoverflow.com/a/4183018/