StdDeserializerprovider

32 views
Skip to first unread message

Tapasvi Soni

unread,
Mar 11, 2021, 10:26:48 AM3/11/21
to jackson-user
For one of my projects I am trying to upgrade from jackson 1.9 to jackson 2.12.2

I am facing issue in finding an alternative to StdDeserializerProvider in jackson 2 databind jar

snippet of code using jackson 1 is as below:

ObjectMapper mapper = new ObjectMapper(factory, null, new StdDeserializerProvider(new WrappedJSONdeserializerFactory(ctx, level)));  

How can I do same deserialization usin jackson 2.12.x jars?

Tatu Saloranta

unread,
Mar 11, 2021, 12:59:20 PM3/11/21
to jackson-user
There is no exact replacement since `DeserializerProvider` type was removed.
It looks like the idea would be to override `DeserializerFactory` (assuming `WrappedJSONdeserializerFactory` is a subclass), something that would not be recommended in 2.x either -- there is probably a better way to achieve that. But to know how to replace it, it'd be necessary to know what it does.

So could you describe a bit more on what `WrappedJSONdeserializerFactory` is used for?

-+ Tatu +-

--
You received this message because you are subscribed to the Google Groups "jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jackson-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jackson-user/bce415b7-3dd2-4c4d-83d8-ee2422b91fden%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages