Gson处理纯数组类型的json数据

String result = sb.toString();
Type listType = new TypeToken<LinkedList<ApiBean>>() {}.getType();
Gson gson = new Gson();
LinkedList<ApiBean> list = gson.fromJson(result, listType);

 

posted @ 2017-01-04 11:12  一路向北中  阅读(1077)  评论(0编辑  收藏  举报