-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Comments
Was this issue actually solved? I see the comment "Fixed by r584." but i have no idea how to find release 584. It doesn't seem obvious from gsonbuilder how i would enable c style comments. |
I think the information about which exact change was r584 was lost when this code was migrated from Google Code to GitHub, but we do still have the commit history including dates. Based on that, I think it was this change. The documentation could be improved, but based on JsonReader.setLenient we might guess that |
The underlying issue is probably that |
I don't think we can change this default leniency, but we could modify the documentation to describe the actual behaviour, and we could potentially add |
That sounds like a good idea; it would allow fixing the whole issue that some methods of So maybe a better solution would be (compared to introducing multiple strictness levels) to create config classes, e.g. What do you think? |
Just learned that gson allows comments in strict mode, even the IDEA highlight and complains that the standard json don't allow comments. |
@sakurawald, by "strict mode" do you mean the new If you don't mean |
Original issue reported on code.google.com by
bolinf...@gmail.com
on 2 Jun 2010 at 1:42The text was updated successfully, but these errors were encountered: