Is there any way to assign the root object in a re...
# serialization
k
Is there any way to assign the root object in a response to be the one that's deserialized into an object?
d
Yes but with a custom serializer.
k
figured I would have to do that
d
Are you using ktor?
k
nope, retrofit
d
Ah, I don't know too much about that. You might get some more useful info in #squarelibraries .
k
oh I guess I should mention I'm using
kotlinx.serialization
which is the driving factor there
I'm just allowing retrofit to use kotlinx as a serialization method