使用fastjson:
代码如下:
List<Map<String,Object>> tpdmaplist=map.get("list");
List<entity> tpdList=JSON.parseArray(JSON.toJSONString(tpdmaplist),entity.class);
使用fastjson:
代码如下:
List<Map<String,Object>> tpdmaplist=map.get("list");
List<entity> tpdList=JSON.parseArray(JSON.toJSONString(tpdmaplist),entity.class);