ValV
10/18/2018, 4:27 PM@Serializable data class MyData (val name: String, val value: Any)
and works pretty good with MyData.serializer()
until value
is java.util.Date
. What is the better way to solve it? Write custom serializer like in https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/custom_serializers.md ?ValV
10/18/2018, 9:30 PMDate
still does not work, it Can't locate default serializer for class java.util.Date
ValV
10/18/2018, 9:35 PMMyData
, or inside it, does not workValV
10/18/2018, 10:43 PMSerialContext
ValV
10/18/2018, 10:45 PM