The kdoc of `Json.parse` states: ``` /** ...
# serialization
p
The kdoc of
Json.parse
states:
Copy code
/**
     * Deserializes given json [string] into a corresponding object of type [T] using provided [deserializer].
     * @throws [JsonException] subclass in case of serialization error.
     */
However upon missing field it throws a
kotlinx.serialization.MissingFieldException
. Is this a known issue?
n
i assume the field in question has a default value ?
i think nonstrict allows extra fields that do not ft into the serializable classes, it cannot create data from scratch to fill your serializable classes
m
misread that exception and removed my reply 🙂
The documentation is wrong here. It's clearly not a
JsonException
🤔
n
can your share your class and json ?
in that case probably best to create a issue on github