-
Notifications
You must be signed in to change notification settings - Fork 636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expected quotation mark '"', but had '"' instead at path #2399
Comments
Error message is indeed incorrect (probably related to #2360), but I can't say for sure what is wrong with your input. Probably some unquoted value that should be quoted. Try to look at the specified offset (4054) or turn on |
(It would also be helpful if you provide an actual input after finding the issue) |
This was with lenient mode on, can't seem to reproduce it either |
Also try to update serialization runtime, as 1.3.2 is a kinda of an old release — incorrect message may have already been fixed. |
I got the similar problem when i parsed the number to
I want to use |
@imtianx have you turned on lenient mode? |
Thanks, open the |
I did want to goggle for the exact error message before I posted an issue but I couldn't because it has quotes in it so surrounding it in quotes in google doesn't help!
Caused by: kotlinx.serialization.json.internal.JsonDecodingException: Unexpected JSON token at offset 4054: Expected quotation mark '"', but had '"' instead at path: $.isFork
JSON input: .....07-28T21:06:29Z","updated_at":"2022-11-04T13:28
at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:24)
at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:32)
at kotlinx.serialization.json.internal.AbstractJsonLexer.fail(AbstractJsonLexer.kt:584)
at kotlinx.serialization.json.internal.AbstractJsonLexer.fail$default(AbstractJsonLexer.kt:582)
at kotlinx.serialization.json.internal.AbstractJsonLexer.fail$kotlinx_serialization_json(AbstractJsonLexer.kt:223)
at kotlinx.serialization.json.internal.StringJsonLexer.consumeKeyString(StringJsonLexer.kt:88)
at kotlinx.serialization.json.internal.AbstractJsonLexer.consumeString(AbstractJsonLexer.kt:369)
at kotlinx.serialization.json.internal.AbstractJsonLexer.consumeStringLenient(AbstractJsonLexer.kt:449)
at kotlinx.serialization.json.internal.AbstractJsonLexer.skipElement(AbstractJsonLexer.kt:534)
at kotlinx.serialization.json.internal.StreamingJsonDecoder.handleUnknown(StreamingJsonDecoder.kt:250)
at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeObjectIndex(StreamingJsonDecoder.kt:240)
at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeElementIndex(StreamingJsonDecoder.kt:175)
at dev.gitlive.internal.service.Repository$$serializer.deserialize(Repository.kt:8)
at dev.gitlive.internal.service.Repository$$serializer.deserialize(Repository.kt:8)
at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:70)
at kotlinx.serialization.json.Json.decodeFromString(Json.kt:107)
at io.ktor.serialization.kotlinx.KotlinxSerializationConverter.deserialize(KotlinxSerializationConverter.kt:82)
... 39 more
Environment
The text was updated successfully, but these errors were encountered: