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  哎丫丫呀喂  阅读(74)  评论(0)    收藏  举报