json: use generic types for fromJson
@@ -43,7 +43,7 @@ public boolean test(Class<?> aClass) {
fromJson.setAccessible(true);
return (jsonInput, setting) -> {
- Object obj = jsonInput.read(fromJson.getParameterTypes()[0]);
+ Object obj = jsonInput.read(fromJson.getGenericParameterTypes()[0]);
if (obj == null) {
throw new JsonException("Unable to read value to convert for " + type);
}
