Shan
03/13/2020, 6:55 PMJson(context = serializationContext)
where my serializationContext
is a SerializersModule
which contains all of my contextual serializer mappings, to stringify/parse values, but need it to able to adapt to situations where the data model has changed server-side for older app versions that don't have an updated model. I could use Json.nonstrict
for parsing/writing, but is there any way to use it with my serializationContext
and have it fall back to nonstrict
if the models don't match? Or is there a better way to do this that I'm missing?Shan
03/13/2020, 7:02 PMnonstrict
, but if a field is missing it will still crash during testing. I could catch the JsonDecodingException
and fall back to non-strict that way, but I am hoping there is a better solution 😨marstran
03/13/2020, 7:07 PMShan
03/13/2020, 7:11 PM