[置顶] Java List转Json字符串

import net.sf.json.JSONArray;    

    String json = JSONArray.fromObject(list).toString();

不解释

你可能感兴趣的:(java)