Closed singhangadin closed 3 years ago
You're using a default instance instead of one you configured here: https://github.com/Angads25/KMM-Ktor-Features/blob/master/shared/src/commonMain/kotlin/com/github/angads25/kmmsampleapp/repository/NetworkUseCase.kt#L27
Describe the bug I am using
KotlinxSerializer
withKtor
inKMM Project
. While doing so, I am gettingJsonDecodingException
(Stacktrace) for a key in JSON response I haven't added in the POJO. As mentioned in the docs I have set bothisLenient
andignoreUnknownKeys
flags, to resolve the issue but It doesn't seem to make any difference. You can check the snippet below to get an idea of how I am using the feature in my HttpClientTo Reproduce You can check the implementation in this repo: https://github.com/Angads25/KMM-Ktor-Features Although the code is not updated, the overall implementation hasn't changed.
Environment
Please feel free to ask for any other information not mentioned in the issue description.