Issue 212 in google-gson: Make it possible to allow comments in JSON

153 views
Skip to first unread message

googl...@googlecode.com

unread,
Jun 2, 2010, 9:44:05 AM6/2/10
to google-gson...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

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.


googl...@googlecode.com

unread,
Aug 27, 2010, 3:38:59 AM8/27/10
to google-gson...@googlegroups.com
Updates:
Status: Fixed
Owner: limpbizkit
Labels: -Type-Defect Type-Enhancement

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.

googl...@googlecode.com

unread,
Oct 1, 2010, 6:17:41 PM10/1/10
to google-gson...@googlegroups.com

Comment #2 on issue 212 by bolinfest: Make it possible to allow comments in
JSON
http://code.google.com/p/google-gson/issues/detail?id=212

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.

googl...@googlecode.com

unread,
Oct 10, 2014, 10:00:16 AM10/10/14
to google-gson...@googlegroups.com

Comment #3 on issue 212 by k.st3...@gmail.com: Make it possible to allow
comments in JSON
https://code.google.com/p/google-gson/issues/detail?id=212

no thing


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

googl...@googlecode.com

unread,
Feb 3, 2015, 6:29:28 AM2/3/15
to google-gson...@googlegroups.com

Comment #4 on issue 212 by meelacag...@gmail.com: Make it possible to allow
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/

googl...@googlecode.com

unread,
Mar 18, 2015, 8:25:38 AM3/18/15
to google-gson...@googlegroups.com

Comment #5 on issue 212 by putuindr...@gmail.com: Make it possible to allow
can you please tell me what this is? I would like to deepen
http://wdfshare.blogspot.com

googl...@googlecode.com

unread,
May 28, 2015, 4:34:58 AM5/28/15
to google-gson...@googlegroups.com

Comment #7 on issue 212 by issamant...@gmail.com: Make it possible to allow
comments in JSON
https://code.google.com/p/google-gson/issues/detail?id=212

Hello, i am glad to read the whole content of this blog and am very excited
and happy to say that the webmaster has done a very good job here to put
all the information content and information at one place.
http://soccerwallpaperz.blogspot.com/

googl...@googlecode.com

unread,
Jun 24, 2015, 4:11:23 AM6/24/15
to google-gson...@googlegroups.com

Comment #8 on issue 212 by jenefeem...@gmail.com: Make it possible to allow
I have not a lot of time to go to several websites. however nowadays I
found this web site accidently. I explored a lot of info that is beneficial
to my life. Thanks! http://www.pbsbobet.com/
Reply all
Reply to author
Forward
0 new messages