Gson parse Json with array
问题 I am having some trouble building a class which will parse out gson as I expect it to. I created a class. public class JsonObjectBreakDown { public String type; public List<String> coordinates = new ArrayList<String>(); } And called JsonObjectBreakDown p = gson.fromJson(withDup, JsonObjectBreakDown.class); Below is my json { "type":"Polygon", "coordinates":[ [ [ -66.9, 18.05 ], [ -66.9, 18.05 ], [ -66.9, 18.06 ], [ -66.9, 18.05 ] ] ] } I have used gson before successfully, but never with an