https://kotlinlang.org logo
#serialization
Title
# serialization
r

ribesg

04/04/2019, 8:23 AM
Is there a not-too-hard way to deserialize an object containing a list of items which may be incorrect without crashing the entire deserialization if one single value of one single item is unexpected? I would just like to ignore this item or something
k

krtko

04/06/2019, 6:03 AM
I wonder if your parse the array as an array of objects
Then cast each element to the desired class
4 Views