Skip to content
Advertisement

Tag: deserialization

Can I apply a custom deserializer to within another custom deserializer for GSON

The below is a working code that helps to convert JSON in Object accordingly. If the String is nil, it will be treated as null. There’s 2 custom deserializer i.e. MyOwnStringDeserializer and MyOwnListDeserializer. I am not happy with MyOwnListDeserializer deserializer, as essentially what it is doing is in term of the String comparison to the rule defined in MyOwnStringDeserializer. But

Advertisement