https://kotlinlang.org logo
#ktor
Title
# ktor
r

rrva

03/05/2020, 10:36 AM
Using ktor client, how do I handle a JSON response of type List<Foo> ? I get kotlinx.serialization.SerializationException: Can't locate argument-less serializer for class kotlin.collections.List. For generic classes, such as lists, please provide serializer explicitly. How do I provide a specific list serializer? I am on ktor 1.2.x but can upgrade to 1.3.1
e

e5l

03/05/2020, 11:23 AM
Hi @rrva, it should work with
1.3.1
r

rrva

03/05/2020, 3:59 PM
got it to work
We had to bump to ktor 1.3.1, kotlin 1.3.70 and kotlinx ser 0.20.0
bleeding edge
7 Views