I am upgrading to Jackson 2. I have many custom serializers extending SerializerBase (org.codehaus.jackson.map.ser.std.SerializerBase
). What's the new equivalent class in Jackson 2
What is the replacement class for SerializerBase in FasterXML Jackson 2?
Looks like StdSerializer is the new replacement (com.fasterxml.jackson.databind.ser.std.StdSerializer
)
com.fasterxml.jackson.databind.ser.std.StdSerializer<T>
is the replacement. It also implements Serializable and JsonFormatVisitable apart from previous implementations
If you want to compare the differences:-
and
© 2022 - 2025 — McMap. All rights reserved.