List<JSONObject>和JSONArray

就是两种存储多个jsonobject的方式,用法分别为:

List<JSONObject> jsonlist = new ArrayList<JSONObject>();
jsonlist.add(json);
JSONArray jsonArray = new JSONArray();
jsonArray.put(json);
其余用法完全一致。

猜你喜欢

转载自blog.csdn.net/luoshen87/article/details/74784207