New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to allow comments in JSON #212

Closed
GoogleCodeExporter opened this Issue Mar 19, 2015 · 3 comments

Comments

Projects
None yet
2 participants
@GoogleCodeExporter

GoogleCodeExporter commented Mar 19, 2015

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

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 19, 2015

Fixed by r584.

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

  • Changed state: Fixed
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

GoogleCodeExporter commented Mar 19, 2015

Fixed by r584.

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

  • Changed state: Fixed
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect
@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 19, 2015

[deleted comment]

GoogleCodeExporter commented Mar 19, 2015

[deleted comment]
@LegendLength

This comment has been minimized.

Show comment
Hide comment
@LegendLength

LegendLength Jan 7, 2016

Is there no way to mark a comment as spam? (i.e. the two comments above?)

LegendLength commented Jan 7, 2016

Is there no way to mark a comment as spam? (i.e. the two comments above?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment