//数据 [{"name":"field1","value":"文本1"},{"name":"field2","value":"文本2"}]
JSONArray jsondata = JSONArray.fromObject(formArray);
for (int i = 0; i < jsondata.size(); i++) {
JSONObject js = JSONObject.fromObject(jsondata.get(i));
System.out.println(js.get("name"));
System.out.println(js.get("value"));
}
json 数据处理 java
最新推荐文章于 2020-09-24 10:03:43 发布