We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a99156 commit 520cacbCopy full SHA for 520cacb
formats/json/commonMain/src/kotlinx/serialization/json/internal/StreamingJsonDecoder.kt
@@ -239,18 +239,18 @@ internal open class StreamingJsonDecoder(
239
val key = decodeStringKey()
240
lexer.consumeNextToken(COLON)
241
val index = descriptor.getJsonNameIndex(json, key)
242
+ currentIndex = index
243
244
if (index == UNKNOWN_NAME) {
245
handleUnknown(descriptor, key)
- currentIndex = UNKNOWN_NAME
246
continue
247
}
248
249
if (configuration.coerceInputValues && coerceInputValue(descriptor, index)) {
250
251
252
+
253
elementMarker?.mark(index)
- currentIndex = index
254
return index
255
256
0 commit comments