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

Support Records as Map keys without the need for @JsonDeserialize for @JsonDeserialize(keyUsing=... #4029

Open
nlisker opened this issue Jul 11, 2023 · 0 comments
Labels
Record Issue related to JDK17 java.lang.Record support to-evaluate Issue that has been received but not yet evaluated

Comments

@nlisker
Copy link

nlisker commented Jul 11, 2023

See FasterXML/jackson-future-ideas#62

When records are used as keys of a map, Jackson needs to know how to deserialize them and that requires a custom deserializer class (@JsonDeserialize(keyUsing = Point.Deserializer.class)). For records, the deserialization process is (or should be) known, so a default one can be used automatically, removing the need for an annotation, just like with primitive types.

@nlisker nlisker added the to-evaluate Issue that has been received but not yet evaluated label Jul 11, 2023
@cowtowncoder cowtowncoder added the Record Issue related to JDK17 java.lang.Record support label Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Record Issue related to JDK17 java.lang.Record support to-evaluate Issue that has been received but not yet evaluated
Projects
None yet
Development

No branches or pull requests

2 participants