Map转为String
String str = JSON.toJSONString(map);
String转为Map
Map maps = (Map)JSON.parse(str);
转为List<VO>
List<RechargeRecordsVO> list = JSON.parseArray(JSON.toJSONString(returnData.get("rows")), RechargeRecordsVO.class);
把Map类型转为String类型,再转为实体Info:
Map<String, Object> map = noticeService.getNoticeDetail(noticeId, platformId); NoticeDetailInfo data = JSON.parseObject(JSON.toJSONString(map.toString()), NoticeDetailInfo.class);