org.json.JSONObject cannot be converted to JSONArray

前端 未结 3 1691
隐瞒了意图╮
隐瞒了意图╮ 2020-12-06 13:35

I am getting a exception while working in json . My JSONPresr class is as follow

 import java.io.BufferedReader;
 import java.io.IOException;
 import java.io         


        
3条回答
  •  悲哀的现实
    2020-12-06 14:20

    Learn from exception

    org.json.JSONObject cannot be converted to JSONArray
    

    You are getting this exception org.json.JSONObject cannot be converted to JSONArray because you are trying to convert JSONObject to JSONArray which is not possible.

    { represents json object node

    [ represents json array node

提交回复
热议问题