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")
直接把字符串变成对象:
json可通过内置的JSON.parse()转换为object对象。
直接把对象变为字符串
可通过JSON.stringify()将object对象转为json字符串。