I use kotlinxserialization 1.2.2 and use `ignoreU...
# multiplatform
s
I use kotlinxserialization 1.2.2 and use
ignoreUnknownKeys = true
. Still get the error ERROR -
Use 'ignoreUnknownKeys = true' in 'Json {}' builder to ignore unknown keys.
My json config -
Copy code
Json {
    isLenient = true
    ignoreUnknownKeys = true
    prettyPrint = true
  }
m
Did you also inject json into serializer?
Copy code
install(JsonFeature) {
    serializer = KotlinxSerializer(json)
}
s
Hadn’t initially, even after adding I get the same error. @Matthew Kruk