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 serializerByType() deserializerByType() and mixIn() to Jackson2ObjectMapperBuilder [SPR-12313] #16918

Closed
spring-projects-issues opened this issue Oct 7, 2014 · 1 comment
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Oct 7, 2014

Sébastien Deleuze opened SPR-12313 and commented


Issue Links:

Referenced from: commits f518ad9

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented Oct 7, 2014

Sébastien Deleuze commented

We should improve Jackson2ObjectMapperBuilder by adding single entry alternatives to serializersByType(), deserializersByType(), and the new mixIns() that I will introduce with #16758.

For example in addition to serializersByType(Map<Class<?>, JsonSerializer<?>> serializers), we should add the following alternative serializerByType(Class<?> type, JsonSerializer<?> serializer) in order to make it easier to add 1 or 2 entries without creating a whole Map.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants