jsonArray understanding and jsonObject

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

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

The target string into jsonarray

JSONArray json = JSONArray.fromObject(str );

Through the array becomes the object jsonObject

JSONObject job = json.getJSONObject(i);

Value obtained for each object

job.get("name")

 

Guess you like

Origin www.cnblogs.com/zhenxugan/p/11568668.html