-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Please add DeserializationFeature.ACCEPT_STRING_AS_BOOLEAN #2114
Comments
Thank you for your suggestion. The basic idea of allowing stricter handling makes sense. However: there is already Going forward I also hope to support existing property |
you are right |
@eximius313 Thank you for verifying it works. I can close this issue and ensure there is a follow-up for lenient option. |
I think #2113 should cover boolean too (will verify). |
jackson-databind-2.9.5
Currently Jackson deserializes
{"myValue" : "true"}
as Boolean which is not always desirable (because sometimes strict types are required:{"myValue" : true}
).Could you please introduce
DeserializationFeature.ACCEPT_STRING_AS_BOOLEAN
(simmilar toDeserializationFeature.ACCEPT_FLOAT_AS_INT
), which will be enabled by default to cover backward compatibility, but can be disabled if not wanted.Thank you in advance
The text was updated successfully, but these errors were encountered: