https://kotlinlang.org logo
#serialization
Title
# serialization
m

Marcin Wisniowski

06/04/2020, 9:20 PM
Hello, I am trying to serialize a data class containing a
java.time.Duration
, but it doesn't work (
java.time.Instant
works fine), do I need to write a custom serializer? How can I serialize a Duration?
Solved this by writing a custom serializer. ✔️
5 Views