I have a json file, such as the following:
{
\"author\":\"John\",
\"desc\": \"If it is important to decode all valid JSON correctly \\
an
How about commentjson?
http://commentjson.readthedocs.io/en/latest/
This can parse something like below.
{
"name": "Vaidik Kapoor", # Person's name
"location": "Delhi, India", // Person's location
# Section contains info about
// person's appearance
"appearance": {
"hair_color": "black",
"eyes_color": "black",
"height": "6"
}
}
Likely elasticsearch, some products' REST API do not accept comment field. Therefore, I think comment inside json is necessary for a client in order to maintain such as a json template.
EDITED
jsmin seems to be more common.
https://pypi.python.org/pypi/jsmin