//list转换为json
List list = new ArrayList();
String str=JSON.toJSON(list).toString();
//json转换为list
//jasonArray:json字符串
List list = new ArrayList();
list = JSONObject.parseArray(jasonArray, Person.class);
//List转JSONArray
List list = new ArrayList<>();
JSONArray array= JSONArray.parseArray(JSON.toJSONString(list));
//JSONArray转List
JSONArray array = new JSONArray();
List list = JSONObject.parseArray(array.toJSONString(), User.class);
//map转实体类
Map<String, Object> parmMap = new HashMap<>();
User vo = JSON.parseObject(JSON.toJSONString(parmMap), User.class);