String--->JSONObject
JSONObject.parseObject(jsonObjectstring)
map->jsonString
JSONObject.toJSONString(map/list)
JSON.toJSONString(map/list)
String->bean
JSONObject.parseObject(jsonString,Student.class)
(自己总结的结论,为了理清楚知识点,如果有总结得不对的地方,还请大家批评指正)
String--->JSONObject
JSONObject.parseObject(jsonObjectstring)
map->jsonString
JSONObject.toJSONString(map/list)
JSON.toJSONString(map/list)
String->bean
JSONObject.parseObject(jsonString,Student.class)
(自己总结的结论,为了理清楚知识点,如果有总结得不对的地方,还请大家批评指正)