Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to serialize Joda-Time's LocalDate with Kryo

I am trying to serialize with Kryo a class containing a LocalDate from Joda-Time.

It looks like I'll need a custom-made serializer.

I found some Joda-Time serializers in https://github.com/magro/kryo-serializers but none for LocalDate.

Any help? Should I write my own :(?

(Some people marked this as duplicate of Serializing custom object that contains JodaTime objects into JSON, but this is a question about existing Kyro serializers, I fail to see how an answer about a custom JSON serializer solves my problem...)

like image 751
Hugo Zaragoza Avatar asked Nov 09 '22 15:11

Hugo Zaragoza


1 Answers

That repository you mention (magro/kryo-serializers) now does have a JodaLocalDateSerializer (and other Joda serializers) - since about June 2015, a couple of months after you asked.

like image 195
Dominic Scheirlinck Avatar answered Nov 14 '22 22:11

Dominic Scheirlinck