json 集合 转 map

 

json 集合 转 List<map>
ObjectMapper objMap = new ObjectMapper();
List<Map> list =(List<Map>) objMap.readValue(strJson, List.class);


json 单体对象 转 map
ObjectMapper objMap = new ObjectMapper();
Map map =(Map) objMap.readValue(strJson, Map.class);

posted @ 2018-11-28 11:04  蓝色~星空  阅读(155)  评论(0)    收藏  举报