对象、Map转JSON字符串

String str = JSON.toJSONString(对象或map);

 

posted @ 2022-05-13 15:03  changlinlo  阅读(103)  评论(0编辑  收藏  举报