import net.sf.json.*;JSONObject jsStr = JSONObject.fromObject(params); //将字符串{“id”:1}int jsID = Integer.parseInt(jsStr.getString("id"));//获取id的值