The fact is, JSON file doesn’t support comments. All the content in the JSON file is data. But still you want to add a comment to your JSON file, You can use the data part as the comment. Which can be ignored during the processing of JSON file.
The JSON file contains values in name/value combination. You can use “_comment” as name part of JSON (just for example) and the comment text as value of this pair, that can be ignored by the JSON parser. Below is the sample JSON file including comments in JSON data.
This is not the solution but an option to use comments in a JSON file.