fastjson
json字符串转JSONObject
JSONObject jsonObject = JSON.parseObject(json);
json字符串转对象
Student student = JSONObject.parseObject(json, Student.class);
json字符串转List
List<Student> studentList = JSONObject.parseArray(json, Student.class);
json字符串转Map
Map<String,String> map = JSONObject.parseObject(json, Map.class);
对象转json字符串
String json = JSON.toJSONString(obj);