Skip to content

Support @JsonValue for key serialization #47

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

Closed
cowtowncoder opened this issue Aug 13, 2012 · 5 comments
Closed

Support @JsonValue for key serialization #47

cowtowncoder opened this issue Aug 13, 2012 · 5 comments
Milestone

Comments

@cowtowncoder
Copy link
Member

Currently Map key types support a subset of annotations, such as:

  • JsonSerialize and JsonDeserialize properties keyAs and keyUsing work
  • @JsonCreator works for indicating single-String-arg constructors, factory methods

But one annotation that would seem like an obvious addition, @JsonValue, is not yet supported.
It should.

@stevenschlansker
Copy link

It would be nice that when this support appears, we check that it works with jackson-datatype-guava for Multimap keys. (See the issue linked immediately previous to this comment.)

@cowtowncoder
Copy link
Member Author

Agreed.

If anyone has cycles to add a "failing" test (one that resides under "src/test/java/.../failing, and configured to be by-passed for regular build) that would be appreciated.

stevenschlansker pushed a commit to stevenschlansker/jackson-databind that referenced this issue Jan 3, 2013
@stevenschlansker
Copy link

Done, see above.

@stevenschlansker
Copy link

Nice!

@cowtowncoder
Copy link
Member Author

Finally went back. Not very difficult to do. Still need to see guava side.

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

2 participants