java代码
方法一:
1
2
3
4
5
|
JSONArray array = JSONArray.fromObject(data); for (Object object : array) {
JSONObject o = JSONObject.fromObject(object);
o.get( "name" )
} |
方法二:
1
2
3
4
5
|
JSONArray array = JSONArray.fromObject(data); for (int i = 0; i < array.size(); i++) {
JSONObject o = array.getJSONObject(i);
o.get( "name" )
}
java代码 方法一:
方法二:
|