I'm not sure what this error is trying to tell me....
# serialization
j
I'm not sure what this error is trying to tell me. (Its trying to serialize "type")
Exception in thread "DefaultDispatcher-worker-10" kotlinx.serialization.json.internal.JsonDecodingException: Unexpected JSON token at offset 14: Expected beginning of the string, but got ,
JSON input: {"type":"rich","author":{"name":"author"}}
Anyone? I mean this is valid json
e
@Jan I think it’s due to a feature for polymorphic serialization. By default it uses the
type
property.. try configuring your Json instance to use a different
classDiscriminator
https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/json.md#class-discriminator