Re: [jackson-user] Custom deserialization problem for Optional with specified values for Optional.empty()

2018-03-19 Thread Tatu Saloranta
Assuming you are talking about Java 8 Optional, and not alternatives from Guava or Scala, my first question is... why are you not using Java 8 module that provides support for it, `jackson-datatype-jdk8`? -+ Tatu +- On Mon, Mar 19, 2018 at 3:50 AM, cap5lut wrote: > Hi,

[jackson-user] Custom deserialization problem for Optional with specified values for Optional.empty()

2018-03-19 Thread cap5lut
Hi, I'm working on a deserializer for Optionals with specifiable values for Optional.empty(). Here is the source code of the deserializer I came up with: public class EmptyOptionalDeserializer extends JsonDeserializer implements ContextualDeserializer { private Map