string转JSONObject:
JSONObject jsonObject = JSON.parseObject(text);
JSONObject转String:
String text = jsonObject.toJSONString();
string转实体类
Student student = JSONObject.parseObject(text, Student.class);
实体类转String
String text = JSONObject.toJSONString(student);