string转为json

import org.json.JSONObject; String str = "{\"result\":\"success\",\"message\":\"成功!\"}"; JSONObject json = new JSONObject(str); System.out.println(json.toString()); import net.sf.json.JSONObject;(需要导入
相关文章
相关标签/搜索