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

Add standard delegating (or adapting) deserializer, serializer #87

Closed
cowtowncoder opened this issue Sep 30, 2012 · 1 comment
Closed

Comments

@cowtowncoder
Copy link
Member

It is sometimes easier to implement serialization and/or deserialization by using an intermediate type that Jackson knows how to handle (read/write from/to JSON), and then convert between that intermediate type and target Java type. This is called "adapter" in JAXB, and "delegatee" for Jackson creators.

It would make sense to implement abstract generic-type base classes (like StdDelegatingSerializer, StdDelegatingDeserializer), which takes care of the delegate-handling part, and only requires implementation of converter methods to go between intermediate and target types.

@cowtowncoder
Copy link
Member Author

Implemented.

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