In GSON to get a list of objects you do
Gson gson = new Gson();
Type token = new TypeToken>(){}.getType();
return gson.fromJson(json
This has been answered in previous questions. Basically, there are 2 options:
Type in from the calling site. The calling code will use TypeToken or whatever to construct it.Type corresponding to the parameterized type yourself. This will require you to write a class that implements ParameterizedType