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

Allow use of @JsonValue for "key serializers" #2306

Closed
cowtowncoder opened this issue Apr 18, 2019 · 1 comment
Closed

Allow use of @JsonValue for "key serializers" #2306

cowtowncoder opened this issue Apr 18, 2019 · 1 comment
Labels
duplicate Duplicate of an existing (usually earlier) issue

Comments

@cowtowncoder
Copy link
Member

Currently custom key serializers are needed for most types beyond Enums, primitives, and things for which datatype library exists to add support.

But one seemingly easy additional case would be allowing use of @JsonValue annotated accessor for class, if any found.

@cowtowncoder
Copy link
Member Author

Oh. This was actually done long time ago, #47 (for Map keys), although there was also #1428 (@JsonValue on fields too, not just getters).

@cowtowncoder cowtowncoder added duplicate Duplicate of an existing (usually earlier) issue and removed 2.11 labels Oct 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Duplicate of an existing (usually earlier) issue
Projects
None yet
Development

No branches or pull requests

1 participant