Hi, how do I tell Ktor client to ignore unknown fi...
# ktor
t
Hi, how do I tell Ktor client to ignore unknown fields when deserializing to an instace of a dataclass with JacksonSerializer?
d
That's something to tell
JacksonSerializer
itself.
t
Found it 🙂
Copy code
@JsonIgnoreProperties(ignoreUnknown = true)
data class MyDataClass(val myInt: Int)
c
👍
191 Views