java把map转json

JSONUtils.toJSONString(requestMap);    com.alibaba.fastjson.JSON

<!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->  
<dependency>  
    <groupId>com.alibaba</groupId>  
    <artifactId>fastjson</artifactId>  
    <version>1.2.41</version>  
</dependency>

 

posted @ 2018-04-25 11:26  無玑小姐  阅读(1170)  评论(0编辑  收藏  举报