JSONArray//JSON数组
String str=[{"name":"zs"},"hello",true,["c","h"]];JSONArray ary=new JSONArray(str);ary.length();ary.getJSONObject(0).getString("name");ary.getString(1);ary.getJSONArry(3).getString(1)本文共 257 字,大约阅读时间需要 1 分钟。
JSONArray//JSON数组
String str=[{"name":"zs"},"hello",true,["c","h"]];JSONArray ary=new JSONArray(str);ary.length();ary.getJSONObject(0).getString("name");ary.getString(1);ary.getJSONArry(3).getString(1)转载于:https://www.cnblogs.com/gentspy/p/5248040.html