-32
Remove JSON comments from settings files
JSON should not allow comments in files. (Maybe this has been fixed already.)
Сервис поддержки клиентов работает на платформе UserEcho
Сервис поддержки клиентов работает на платформе UserEcho
It's lovely to use but comments would (in some ways) help.
font_size: 12
It would be nice if it could, though.
What is seems to be is just JSON+comments but there is no reason for it to be in any format - it doesn't have to be valid JSON since that data doesn't need to be passed to anything other than Sublime Text.
In fact, since Sublime is written in Python, I am surprised that its config is not in YAML which is a clean, low on punctuation, data serialization format with Python-style syntactically significant indentation - see: http://en.wikipedia.org/wiki/YAML#Examples
In fact YAML is a superset of JSON, so Sublime Text could change the config files format to YAML without actually changing any of the config files themselves - maybe only changing // comments to #. :)
Now, I know that just because Douglas Crockford says how to use comments in JSON, it doesn't necessarily mean we must do it, but from reading your comment one might conclude that he has said exactly the opposite thing, which he hasn't.
As for me, I found this thread when I noticed that Sublime Text removes comments from my user preferences every time I change the font size or color scheme via the user interface or key bindings (like hitting Control+Minus) which I found highly annoying, and looking for a solution I found this thread instead.
I find it surprising that anyone would not want comments in the config files - for those I can only recommend: pipe it through grep -v '^\s*//' and get over it.