I am working on a project (http://code.google.com/p/plovr/) that is trying
to use JSON as the format for a config file. The inability to comment
something out is making me consider XML instead :( You can see the
workaround that I'm using (which I believe is what Crockford recommends) here:
http://code.google.com/p/plovr/source/browse/test/org/plovr/integration-test-con
fig.js
This is a pretty horrible option for multi-line comments, or when you are
experimenting and are frequently enabling/disabling various options.
I realize that // and /* comments are no longer part of the JSON spec, but
in practice, it would be great if it were possible to instantiate a
com.google.gson.JsonParser() in such a way that it would tolerate comments.
I believe some of the other JSON parsers offer this mode.
Original issue reported on code.google.com by
bolinf...@gmail.comon 2 Jun 2010 at 1:42