Skip to content
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

no method to parse json in strict mdoe #577

Closed
GoogleCodeExporter opened this issue Mar 19, 2015 · 1 comment
Closed

no method to parse json in strict mdoe #577

GoogleCodeExporter opened this issue Mar 19, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

there is no method such as GsonBuilder.setLenient(false)  to parse json string 
in strict mode. 
i need gson throw an error if it contains comment.

Original issue reported on code.google.com by dingweiw...@gmail.com on 30 Apr 2014 at 2:42

@Marcono1234
Copy link
Collaborator

Unfortunately Gson is lenient by default due to legacy reasons. However, at least this is now documented since #2122, and the Gson documentation will in the next release also mention workarounds for this.

This issue might also be a duplicate of #372.

@eamonnmcmanus eamonnmcmanus closed this as not planned Won't fix, can't repro, duplicate, stale Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants