Generally, optional values are unwrapped, but if they are nested within a collection or a bean, they will be serialized as {"empty": false, "present": true} without the use of Jdk8Module.
By registering Jdk8Module, we can serialize Optional values properly.
Generally, optional values are unwrapped, but if they are nested within a collection or a bean, they will be serialized as
{"empty": false, "present": true}
without the use ofJdk8Module
.By registering
Jdk8Module
, we can serialize Optional values properly.