Hi all. I'm getting a hard time trying to use kotl...
# serialization
r
Hi all. I'm getting a hard time trying to use kotlinx serialization with ktor. how do I serialize / deserialize an Any attribute (which can be any class)? Stackoverflow question https://stackoverflow.com/questions/60399691/changing-jackson-to-kotlinx-using-ktor
And i'm getting this error:
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
d
Have you registered the list of serializer for the context?
Also do you really need
Any
or do you want
JsonObject
?
r
@Dominaezzz I believe any. I'm doing it as follows: I'm getting a Client class
and my json