Using ktor client, how do I handle a JSON response...
# ktor
r
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
Hi @rrva, it should work with
1.3.1
r
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