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 @JsonSerialize(keyUsing) and @JsonDeserialize(keyUsing) on Key class #2503

Closed
cowtowncoder opened this issue Oct 16, 2019 · 1 comment
Milestone

Comments

@cowtowncoder
Copy link
Member

(note: follow up on #2454)
Although keyUsing property of @JsonSerialize and @JsonDeserialize annotations is supported for properties (added to Methods and Fields) -- as well as when added on Map (sub-)class, one specific usage that seems intuitive is not yet supported as of 2.10.0:

@JsonDeserialize(keyUsing = MyKeyDeserializer.class)
@JsonSerialize(keyUsing = MyKeySerializer.class)
public class KeyType {
    // ...
}

But it probably should be.

@cowtowncoder cowtowncoder added this to the 2.11.0 milestone Oct 16, 2019
@cowtowncoder cowtowncoder changed the title Support @JsonSerialize(keyUsing) and @JsonDeserialize(keyUsing) on Key class itself Support @JsonSerialize(keyUsing) and @JsonDeserialize(keyUsing) on Key class Oct 16, 2019
@cowtowncoder
Copy link
Member Author

Implemented for 2.11, will be in 2.11.0 (which will take a while, pre-releases by end of 2019).

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

1 participant