Paul Woitaschek
05/04/2020, 10:19 AM@Serializable(with = LocalDateSerializer::class)
crummy
05/04/2020, 11:10 AMinstall(ContentNegotiation) {
json(module = serializersModuleOf(LocalDate::class, LocalDateSerializer))
}
coulddn't get it to work though.bartvh
05/04/2020, 11:14 AMPaul Woitaschek
05/04/2020, 11:32 AMbartvh
05/04/2020, 1:34 PMjava.util.Date
as example, is it not working as intended? What kind of error do you get?Paul Woitaschek
05/04/2020, 1:35 PMbartvh
05/04/2020, 1:35 PMPaul Woitaschek
05/04/2020, 1:35 PMPaul Woitaschek
05/04/2020, 1:36 PMbartvh
05/04/2020, 1:36 PMPaul Woitaschek
05/04/2020, 1:39 PMPaul Woitaschek
05/04/2020, 1:39 PMbartvh
05/04/2020, 1:39 PM@file:UseSerializers(HostAndPortSerializer::class)
package x.y.z
data class Endpoint(val hp: HostAndPort)
bartvh
05/04/2020, 1:40 PMHostAndPort
being from Google Guava, and HostAndPortSerializer
defined in another module. Using Kotlin 1.3.31.bartvh
05/04/2020, 1:40 PMbartvh
05/04/2020, 1:41 PMPaul Woitaschek
05/04/2020, 1:41 PMPaul Woitaschek
05/04/2020, 1:42 PMbartvh
05/04/2020, 1:43 PMbartvh
05/04/2020, 1:44 PMPaul Woitaschek
05/04/2020, 1:58 PMPaul Woitaschek
05/04/2020, 1:58 PMPaul Woitaschek
05/04/2020, 2:15 PMPaul Woitaschek
05/05/2020, 5:21 AMPaul Woitaschek
05/05/2020, 6:35 AM