How to debug this: `kotlinx.serialization.json.Jso...
# serialization
l
How to debug this:
kotlinx.serialization.json.JsonParsingException: Invalid JSON at 1221: Expected '[, kind: kotlinx.serialization.UnionKind$POLYMORPHIC@1e6d1014'
s
This happens because parser was expecting array of [typeName, object] for polymorphic deserialization
l
How could I know why it was expecting that?
n
you have something that takes alist of objects but it cannot be sure which classes are serializable.. there might be multiples
so it would make a array with the first element being the type hint
l
Thanks I think I figured it out