It would be nice if we could configure the deserializer to be more lenient, such that if a field is missing from the serialized form, that is nullable in the data class, it just assigns null.
@Serializable
data class Info(
val created: String,
val lastAccessed: String?,
)
It would be nice if we could configure the deserializer to be more lenient, such that if a field is missing from the serialized form, that is nullable in the data class, it just assigns null.
And I try to decode:
It will just assign null to
lastAccessed