How to Parse JSON Array With Gson
Parsing JSON array is very easy with Gson. Follow these steps to read JSON Array Create GSON Object Read array with fromJson() To read jsonString as array we use following syntax Gson gson=new Gson(); ElementType [] refVar=gson.fromJson(jsonString,ElementType[].class); To read jsonString as List TypeToken is used to find the type of class List eList=(List)gson.fromJson(reader, new TypeToken(){}.getType()); … Read more