How to use some Jackson Deserializer in own custom Deserializer?

Viewed 2693

I am struggling with mentioned in the question issue.

I need to create some custom deserializer which is more or less type conversion from the standard deserializer (reason is that ZonedDateTime is working for my input, but I don't want to change the type to ZonedDateTime, but keep LocalDateTime).

Bascially what I want to do in my deserializer is to:

  1. Deserialize using ZonedDateTime deserializer (which I found, in reality, is custom InstantDeserializer )
  2. Use .toLocalDateTime and return it.

How can I use it? Was trying to find it but I can't.

2 Answers
Related