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

Option to use object equality when serializing @JsonIdentityInfo objects #270

Closed
beku8 opened this issue Jul 29, 2013 · 2 comments
Closed
Milestone

Comments

@beku8
Copy link

beku8 commented Jul 29, 2013

Current serializing strategy is using default JDK serializer, which uses object identity(==) when serializing circular references. But sometimes its a better idea to use object equality(equals & hashcode methods) so users can have more control.
So we can supply optional serializing strategy to use with @JsonIdentityInfo annotation.
p.s: You can look at this issue for more details, which I posted earlier thinking that this missing feature was a bug.

cowtowncoder added a commit that referenced this issue Aug 7, 2013
@cowtowncoder
Copy link
Member

Implemented, turned out to be quite easy to do: enabled with SerializationConfig.USE_EQUALITY_FOR_OBJECT_ID.

@beku8
Copy link
Author

beku8 commented Aug 7, 2013

Ok thank you I will try it out

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