对象、Map转JSON字符串

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

 

posted @ 2022-05-13 15:03  clya  阅读(121)  评论(0)    收藏  举报