json字符串转为map集合 map集合转json字符串
/json字符串转成map集合
private Map
// TODO Auto-generated method stub
Map
return mapList;
}
//map集合转json字符串
Map<String, Object> map = getMapFromJson(message);
ObjectMapper json = new ObjectMapper();
String params = json.writeValueAsString(map);
System.out.println("++++++++++++++++++转成的json格式字符串:"+params);
还没有评论,来说两句吧...