Android:使用OkHttp解析Json遇到的坑
Android:使用OkHttp解析Json遇到的坑
相信大家会遇到如下这个问题: org.json.JSONArray cannot be converted to JSONObject。有些人却找不出办法,接下来给大家列出解决办法。
代码块
没有改变代码之前:
JSONArray jsonArray = new JSONArray(jsonData);
for (int...
原创
2019-11-12 11:22:52 ·
796 阅读 ·
0 评论