Java FastJson解析json字符串

json转map

Map<String, 实体类> titleMap=JSON.parseObject(JSON字符串, new TypeReference<HashMap<String, 实体类>>() {});

json转对象

Student student = JSON.parseObject(JSON_OBJ_STR, new TypeReference<Student>() {});

 

posted @ 2020-07-29 17:57  陈彦斌  阅读(289)  评论(0)    收藏  举报