MAP转JSON

import com.alibaba.druid.support.json.JSONUtils


Map<String,String> map = new HashMap<>();
                        map.put("test","AA");
String str = JSONUtils.toJSONString(map);

 

posted @ 2022-05-26 16:56  哎丫丫呀喂  阅读(67)  评论(0编辑  收藏  举报