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
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.
JSONObject to JSONArray
{ represents json object node
{
[ represents json array node
[