Parsing JSON array into java.util.List with Gson
Definitely the easiest way to do that is using Gson’s default parsing function fromJson(). There is an implementation of this function suitable for when you need to deserialize into any ParameterizedType (e.g., any List), which is fromJson(JsonElement json, Type typeOfT). In your case, you just need to get the Type of a List<String> and then … Read more