Hi guys, with kotlinx serialization i am facing fo...
# serialization
s
Hi guys, with kotlinx serialization i am facing following error in kmm project
Copy code
Caused by: kotlinx.serialization.json.internal.JsonDecodingException: Polymorphic serializer was not found for missing class discriminator ('null')
Not able to find any solution for that. Can anyone help me with that. Tried some solutions from google and stackoverflow, but didnt worked.
e
Do you have json? I assume it misses
type
property
a
when you define Json, also make sure you defined the classDiscriminator (it is defaulted to "type"