Gson处理纯数组类型的json数据
String result = sb.toString(); Type listType = new TypeToken<LinkedList<ApiBean>>() {}.getType(); Gson gson = new Gson(); LinkedList<ApiBean> list = gson.fromJson(result, listType);
String result = sb.toString(); Type listType = new TypeToken<LinkedList<ApiBean>>() {}.getType(); Gson gson = new Gson(); LinkedList<ApiBean> list = gson.fromJson(result, listType);