In my android app, I have to use JSON from server to make specific adjustment in the app. I\'m trying to achive is to read this json and store all the values into local vari
Current json string format is :
[ //<<<< JSONArray
{ //<<<< JSONObject
// other items here...
}
]
this Json string content JSONArray
as root element instead of JSONObject
. you will need to convert it first JSONArray then extract JSONObject from it :
JSONArray jsonObject = jParser.getJSONFromUrl(url);
also change getJSONFromUrl
method return type to JSONArray