-
-
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
hope to add feature DeserializationFeature.READ_ENUMS_USING_INDEX #149
Comments
This should already work, have you tried it? There is a way to disable this (FAIL_ON_NUMBERS_FOR_ENUMS), but by default it should "just work". |
Sorry, I did not describe my problem clearly! if the json value is Integer, it works well. if the json value is String, it will throws an exception. |
Ok, yes I think I understand this. Thank you for clarification. |
Will this feature be added in a new version? |
Yes if someone spends time implementing it. |
Thank you very much! |
Ok good news: I went ahead and implemented this -- no feature needed, quoted numbers can be used without specific configuration now. Will be included in 2.4.0 once it is released. |
JsonParser, ObjectCodec: javadoc: empty docs to return null
I hope to add DeserializationFeature.READ_ENUMS_USING_INDEX. When I enable this config, deserialize enum type property will use enum's ordinal.
The text was updated successfully, but these errors were encountered: