json
小刘童鞋爱健身
爱健身的小刘!
展开
-
如何在JSON中返回数组格式的数据?
一、发出请求 public String test(){ List<CompanyResPool> list=new ArrayList<CompanyResPool>(); CompanyResPool comResPool = new CompanyResPool(); String companyIdS...原创 2018-12-07 18:09:41 · 5213 阅读 · 1 评论 -
用json实现深拷贝
一、代码 private SaleDetailReportRespDTO deepCopy(SaleDetailReportRespDTO obj) { String json = JSON.toJSONString(obj); return JSON.parseObject(json, SaleDetailReportRespDTO.class); ...原创 2019-06-18 15:19:16 · 1861 阅读 · 0 评论 -
json:JsonOperationException json字符串转化错误
一、报错 二、解决 三、解读 json 的转换,需要实现serializable接口原创 2019-06-18 15:50:15 · 346 阅读 · 0 评论