New issue 212 by bolinfest: Make it possible to allow comments in JSON
http://code.google.com/p/google-gson/issues/detail?id=212
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-config.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.
Comment #1 on issue 212 by limpbizkit: Make it possible to allow comments
in JSON
http://code.google.com/p/google-gson/issues/detail?id=212
Fixed by r584.
This is really awesome! Is there any plan to do another release soon (which
would presumably include this fix)? It looks like the last one was August
19, but there have been quite a few submissions since then.