JSONArray对象具有一个功能
getJSonObject(intindex),您可以编写一个简单的for循环来遍历所有JSONObject:
JSonArray array;for(int n = 0; n < array.length(); n++){ JSonObject object = array.getJSonObject(n); // do some stuff....}
JSONArray对象具有一个功能
getJSonObject(intindex),您可以编写一个简单的for循环来遍历所有JSONObject:
JSonArray array;for(int n = 0; n < array.length(); n++){ JSonObject object = array.getJSonObject(n); // do some stuff....}