Possible Duplicate:
Can I comment a JSON file?
We are using a .json file on a project. We want to know if we can add comments to the file and avoid crashing the JSON parser.
We’ve tried to do so with the following comment types, but they all crash the JSON file when it’s parsed:
# I crash
// I crash
/* I crash */
Is there an acceptable form of commenting for JSON files?
JSON doesn’t support comments – which is good when you think about it. However, someone has made JSON5 (https://github.com/aseemk/json5), which does, and may be of use to you.
It’s worth pointing out that this is just someones JSON-like project, and is not an official spec, but then I guess JSON is just someones XML-like project that people liked 🙂