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)
控制臺(tái)拋出此異常,如何解決?
2018-05-03
int? result = jsonObject.getInt("errcode");
2018-04-18
2018-04-07
json對(duì)象需要是個(gè)數(shù)值,但不是數(shù)值類型