tjohnn
02/21/2020, 9:21 AMnull
value to a kotlin non-nullable field?tjohnn
02/21/2020, 9:24 AMLeon K
02/21/2020, 11:21 AMJsonNull
but that requires creating a deserializer for every type.
I'D generally recommend looking into the kotson library, it's a gson-wrapper that provides some great kotlin-idiomatic versions of gson-stuff (such as creating custom deserializers and serializers, working with generics without having to use TypeTokens (-> reified types in their functions) and so on)Andrew
02/21/2020, 5:33 PMLeon K
02/21/2020, 5:34 PM0
by default. This is even harder to find and debug...Andrew
02/21/2020, 5:37 PMLeon K
02/21/2020, 6:28 PM0
for multiple hours before looking into the gotchas of gson" and "API had a breaking change that renamed a field, thus now the client-side deserialization fails silently and will be unnoticed for some time"Andrew
02/21/2020, 7:02 PMdam5s
02/21/2020, 7:05 PMtjohnn
02/21/2020, 8:45 PMtjohnn
02/21/2020, 8:47 PMAndrew
02/21/2020, 8:55 PM