018-Not a primitive array: class org.json.JSONArray问题解决(转)
转载自:https://blog.csdn.net/akuma_/article/details/83992871
Not a primitive array: class org.json.JSONArray
报错语句:
JSONArray okJsonArray = new JSONArray(jsonParam.get(""));
解决办法:
JSONArray okJsonArray = new JSONArray(jsonParam.get("").toString());
或
JSONArray okJsonArray = (JSONArray) jsonParam.get(“id_name”);