参数
params={"abc":0}
JSONObject转换Int类型
JSONObject json = JSONObject.fromObject(params); if (json.containsKey("desgin_review_type")) { value=json.getInt("abc")+""; } }
运行错误写法<java.lang.Integer cannot be cast to java.lang.String>
String value = "; Map<String, String> map = JSONObject.fromObject(params); if (map.containsKey("abc")) { value = map.get("abc").toString(); }