-
-
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
Incorrect serialization of enum map key #943
Comments
Does it only fail as part of regular |
Yea, it works for all kinds of other cases with that enum. The nested map is the first failure I've seen. |
Ok, that makes some sense, wrt finding the root cause. Assume this is with 2.6.2. |
After tackling other issues (such as much simpler #749), I hope to solve the issue of custom key serializer for "untyped" Maps (ones where key type is loose, usually |
FWTW, the useful caching-helper class is |
Was able to implement a dynamic key serializer based on ideas bounced on dev list. Key serializer is used if nominal type is detected as |
https://github.com/bimargulies/jackson-enum-tc
I have a module with a key serializer for the enum class TestEnum. When I serialize from a map to a tree, where one of the map values it a map with a key of this enum type, the key serializer is not called.
The text was updated successfully, but these errors were encountered: