FastJson
解析带泛型的json
BasePojo<AccessRecord> basePojo = JSONObject.parseObject(info, new TypeReference<BasePojo<AccessRecord>>(){}.getType());
为空的参数也要显示出来
String jsonData = JSON.toJSONString(data, SerializerFeature.WriteNullStringAsEmpty);
BasePojo<AccessRecord> basePojo = JSONObject.parseObject(info, new TypeReference<BasePojo<AccessRecord>>(){}.getType());
String jsonData = JSON.toJSONString(data, SerializerFeature.WriteNullStringAsEmpty);
get
开头, 走走会被转成属性