Does anybody know how to configure ktor client for...
# ktor
v
Does anybody know how to configure ktor client for case-insensitive json deserialization? I have a DTO (data class) which has enum property. All enum values are in upper case but data is in lower case.
Solved using
Copy code
@get:JsonFormat(with = [JsonFormat.Feature.ACCEPT_CASE_INSENSITIVE_PROPERTIES])
val property: EnumType
m
Nice. Do you really need the
@get:
-prefix, or does it work with
@JsonFormat
as well?
Oh, this is Jackson, right? I was thinking it was kotlinx.serialization.
v
Yes. Jackson. And it's constructor argument