List list = new ArrayList();
list.add(new Person(“小花”,25));
list.add(new Person(“小明”,26));
JSONArray parseArray = JSONArray.parseArray(JSON.toJSONString(li));
java对象转jsonArray实例
最新推荐文章于 2023-08-30 22:25:21 发布
List list = new ArrayList();
list.add(new Person(“小花”,25));
list.add(new Person(“小明”,26));
JSONArray parseArray = JSONArray.parseArray(JSON.toJSONString(li));