We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffa4c3b commit b931598Copy full SHA for b931598
formats/json/jsMain/src/kotlinx/serialization/json/internal/DynamicDecoders.kt
@@ -248,7 +248,7 @@ private class DynamicMapInput(
248
if (isKey) {
249
val value = decodeTaggedValue(tag)
250
if (value !is String) return decode(tag)
251
- return value.toString().cast() ?: throwIllegalKeyType(tag, value, type)
+ return value.cast() ?: throwIllegalKeyType(tag, value, type)
252
}
253
return decode(tag)
254
0 commit comments