json转map
Map<String, 实体类> titleMap=JSON.parseObject(JSON字符串, new TypeReference<HashMap<String, 实体类>>() {});
json转对象
Student student = JSON.parseObject(JSON_OBJ_STR, new TypeReference<Student>() {});
2022-11-16 11:24:19
Map<String, 实体类> titleMap=JSON.parseObject(JSON字符串, new TypeReference<HashMap<String, 实体类>>() {});
Student student = JSON.parseObject(JSON_OBJ_STR, new TypeReference<Student>() {});
下一篇:FastJson 不输出空数组