import org.codehaus.jackson.map.ObjectMapper; //依赖
// 方法:
Map<String,Object> paramMap = new HashMap<>();
ObjectMapper json = new ObjectMapper();
String params = json.writeValueAsString(paramMap);
将Map集合转换成json格式的字符串
猜你喜欢
转载自blog.csdn.net/weixin_42767087/article/details/89671109
今日推荐
周排行