Gson處理純數組類型的json數據

String result = sb.toString();
Type listType = new TypeToken<LinkedList<ApiBean>>() {}.getType();
Gson gson = new Gson();
LinkedList<ApiBean> list = gson.fromJson(result, listType);
相關文章
相關標籤/搜索