A project is a domain model that must be implemented to deserialize a json string:
Type listType = new TypeToken<List<Project>>(){}.getType(); List<Project> projects = (List<Project>) gson.fromJson(response, listType);
You can use the generic List type, as described in this article, in Eclipse you get a yellow warning sign "List is a raw type. References to the generic List type must be parameterized."
yorkw
source share