https://kotlinlang.org logo
#ktor
Title
# ktor
d

dewildte

02/25/2019, 4:34 PM
to do otherwise you must add an annotation that tells Gson the expected JSON key for a field that does no match it.
j

jw

02/25/2019, 10:45 PM
Or specify a
FieldNamingStrategy
for automatic conversion. Although we (the Gson maintainers) think this is actually a terrible feature: https://publicobject.com/2016/01/20/strict-naming-conventions-are-a-liability/