jasonzue / google-gson

Automatically exported from code.google.com/p/google-gson
0 stars 0 forks source link

Make it possible to allow comments in JSON #212

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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.com on 2 Jun 2010 at 1:42

GoogleCodeExporter commented 9 years ago
Fixed by r584.

Original comment by limpbizkit on 27 Aug 2010 at 7:34

GoogleCodeExporter commented 9 years ago
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.

Original comment by bolinf...@gmail.com on 1 Oct 2010 at 10:16

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I agree with you. This post is truly inspiring. I like your post and everything 
you share with us is current and very informative, I want to bookmark the page 
so I can return here from you that you have done a fantastic job. 
http://ibc.betnesia.com/

Original comment by meelacag...@gmail.com on 3 Feb 2015 at 11:29

GoogleCodeExporter commented 9 years ago
can you please tell me what this is? I would like to deepen
http://wdfshare.blogspot.com

Original comment by putuindr...@gmail.com on 18 Mar 2015 at 12:25