jsonArray和jsonObject的理解

https://blog.csdn.net/weixin_42204641/article/details/82850659

https://www.cnblogs.com/-why/p/9145579.html

把字符串转换成jsonarray对象

JSONArray json = JSONArray.fromObject(str );

遍历数组 变成jsonObject对象

JSONObject job = json.getJSONObject(i);

得到每个对象的值

job.get("name")

猜你喜欢

转载自www.cnblogs.com/zhenxugan/p/11568668.html