Closed altfatterz closed 3 years ago
Hi Zoltan,
Nippy doesn't currently implement its protocol for any of the types in java.time
. PR welcome to add some core types.
Otherwise can also do via Java's Serializable interface. Nippy v2.15.0 example:
(binding [*serializable-whitelist* #{"java.time.Instant"}]
(thaw (freeze java.time.Instant/EPOCH)))
=> #object[java.time.Instant 0x76c7fdad "1970-01-01T00:00:00Z"]
Resolved with [com.taoensso/nippy "3.1.0-RC1"]
.
I am using crux version 20.03-1.7.1-alpha which uses Nippy version 2.14.0 Do I have to set serialisation guidance to Nippy to properly serialise java.time.Instant? How to do that?