I have a `Map<String, Any>` and one of the v...
# serialization
n
I have a
Map<String, Any>
and one of the values contains a
Date
instance. Is it possible to have a custom serializer in this case? In
deserialize
method I don't know how to decode it
b
You can always encode it as date string and decode from that
n
I don't have control over this map. It's given to me like that.
b
Then writa a custom serializer for any covering all known values your map can have
And check for types explicitly
n
Ok, can you give an example?