You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add serializerByType() deserializerByType() and mixIn() to Jackson2ObjectMapperBuilder [SPR-12313] #16918
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.
Activity
spring-projects-issues commentedon Oct 7, 2014
Sébastien Deleuze commented
We should improve
Jackson2ObjectMapperBuilderby adding single entry alternatives toserializersByType(),deserializersByType(), and the newmixIns()that I will introduce with #16758.For example in addition to
serializersByType(Map<Class<?>, JsonSerializer<?>> serializers), we should add the following alternativeserializerByType(Class<?> type, JsonSerializer<?> serializer)in order to make it easier to add 1 or 2 entries without creating a whole Map.