SyntaxFix
Write A Post
Hire A Developer
Questions
You need to create a TypeReference object for each generic type you use and use that for deserialization. For example -
TypeReference
mapper.readValue(jsonString, new TypeReference<Data<String>>() {});