The @JsonDeserialize and @JsonSerialize should allow a contentConverter to operate on the class inside the wrapped Java Optional class. Right now the only support is for using converter but you end up writing twice the amount of Converters if you need to support both Optional and Non-Optional bindings.
The
@JsonDeserialize
and@JsonSerialize
should allow acontentConverter
to operate on the class inside the wrapped JavaOptional
class. Right now the only support is for usingconverter
but you end up writing twice the amount of Converters if you need to support both Optional and Non-Optional bindings.