JSONObject["errcode"] is not a number.
Exception in thread "main" net.sf.json.JSONException: JSONObject["errcode"] is not a number.
at net.sf.json.JSONObject.getInt(JSONObject.java:2174)
at com.imooc.util.WechatUtil.createMenu(WechatUtil.java:222)
at com.imooc.test.WechatTest.main(WechatTest.java:29)
控制臺拋出此異常,如何解決?
2018-05-03
int? result = jsonObject.getInt("errcode");
2018-04-18
2018-04-07
json對象需要是個數值,但不是數值類型