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

Umesh Gupta

12/11/2023, 5:03 PM
Hello need a little help in IOS. Getting an error -
failed with exception: kotlinx.serialization.SerializationException: Serializer for class 'List' is not found.
Please ensure that class is marked as '@Serializable' and that the serialization compiler plugin is applied.
Trying to parse a List of object
httpClient.get(url).body<List<Response?>?>()
JSON
Copy code
[
{"name" : "string"},
{"name" : "string"},
{"name" : "string"},
{"name" : "string"}
]