What is the replacement class for SerializerBase in FasterXML Jackson 2?
Asked Answered
R

2

9

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

Rigsdaler answered 11/6, 2015 at 17:48 Comment(0)
R
12

Looks like StdSerializer is the new replacement (com.fasterxml.jackson.databind.ser.std.StdSerializer)

Rigsdaler answered 11/6, 2015 at 17:48 Comment(0)
U
0
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:-

https://fasterxml.github.io/jackson-core/javadoc/1.9/index.html?org/codehaus/jackson/map/ser/std/class-use/SerializerBase.html

and

https://fasterxml.github.io/jackson-databind/javadoc/2.8/index.html?com/fasterxml/jackson/databind/ser/std/StdSerializer.html

Untuck answered 3/7, 2024 at 11:54 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.