Join Slack
Facing issues when trying to serialise data classes with js primitive types, seems like an issue wit...
# serialization
s
shikhar
07/17/2025, 4:05 AM
Facing issues when trying to serialise data classes with js primitive types, seems like an issue with the generated js serializer code. Serialization attempts always throw a
ClassCastException
due to an instanceof check kotlinx-ser adds which won’t work with js primitive types. Issue with sample code:
https://github.com/Kotlin/kotlinx.serialization/issues/3048
Please help if anyone knows of a solve
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by