Closed abelsromero closed 4 years ago
Use of Smile should not preclude use of Java 8 data types so yes, this usage should be supported.
Is there any possibility that whatever is serializing values did NOT use JavaTimeModule
? Without registering module, serialization still "succeeds", but uses POJO introspection resulting in Object, instead of number or String.
Is there any possibility that whatever is serializing values did NOT use
JavaTimeModule
?
Apparently it was, the ObjectMapper was initialized in a way that the modules where not added. That also explains why other custom serializers did not work. Not it's working correctly, with also Optionals.
Many, many thanks! :smile:
@abelsromero Ah. That happens :)
Glad to hear things are working: Smile format has logical model very close to JSON so it really should work very similarly regarding datatypes.
v 2.10.13
We are testing the use of SMILE with a current project and it seems that Java8 types like LocalDate are not treated. To manage them in JSON we add the provided modules without problems.
But when adding the
SmileFactory
the error show below appears.Testing further we have also seen that other custom jackson serializers and deserializers and not invoked when using SMILE.
Is SMILE compatible with those types?