On Thu, Mar 11, 2021 at 7:26 AM Tapasvi Soni <[email protected]> wrote:

> 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?
>

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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jackson-user/bce415b7-3dd2-4c4d-83d8-ee2422b91fden%40googlegroups.com
> <https://groups.google.com/d/msgid/jackson-user/bce415b7-3dd2-4c4d-83d8-ee2422b91fden%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jackson-user/CAGrxA27dx7pO3Z1L9RmDO2O592pO1_6htPKh4jkBiW%2B7cg5u%3Dw%40mail.gmail.com.

Reply via email to