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);
转载于:https://www.cnblogs.com/linson0116/p/6247879.html