list转json字符串

来源:互联网 发布:php curl 301跳转 编辑:程序博客网 时间:2024/05/22 14:29

用到一个jar包 

fastjson-1.2.9.jar

语法

String json = JSON.toJSONString(list);