标签:icm pom mui parse string imp span sim hls
1 String jsonstr = "[{\"id\":\"123\",\"name\":\"张三\",\"age\":\"11\"},{\"id\":\"321\", \"name\":\"李四\",\"age\":\"21\"}]"; 2 JSONArray jsonArray = JSONArray.parseArray(jsonstr); 3 for (int i=0;i<jsonArray.size();i++) {//会循环两次 4 JSONObject jsonObject = jsonArray.getJSONObject(i); 5 String id = jsonObject.getString("id");//123,321 6 String name = jsonObject.getString("name");//张三,李四 7 String age = jsonObject.getString("age");//11,21 8 }
fastjson的jsonObject-jsonArray处理
标签:icm pom mui parse string imp span sim hls
原文地址:https://www.cnblogs.com/flyinghome/p/12145572.html