Hello,

Comments in JSON files are a great way to document a configuration file for 
example.
Even JSON's Douglas Crockford agrees that it is a helpful thing and it 
suggests using JSMin before handing it to the JSON parser in here
https://plus.google.com/+DouglasCrockfordEsq/posts/RK8qyGVaGSr

So, I would like to suggest adding that feature do the json module.
A simple boolean argument, clear_comments, with the default False to keep 
previous compatibility.
With the clear_comments=True and following JSMin "rules", comments in the 
// form should be replaced with linefeeds and comments in the /* */ form 
with spaces.

Best regards,

JM

_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to