I have a simple list class as shown below:
public class Foo {
@Expose
private ClassA classa;
@Expose
private List<ClassB> list;
}
Serialization and deserialization work fine. However, when I mess up my code with ProGurad I get the following exception:
com.google.gson.JsonParseException: Json deserializer com.google.gson.DefaultTypeAdapters$CollectionTypeAdapter@406f65 08 could not deserialize the json object [{...}, {...}, ...] given the class java type .util.List
Sanford malcom
source
share