I have a json array which have no array name. How can I parse a JSON array which dont have a name? This is my array
[
{
"id": "13",
"email": "[email protected]",
"first_name": "jcheck",
"last_name": "check",
"country": "india",
"city": "tvm",
"zip_code": "695581",
"phone": "4712584632",
"status": "Success"
}
]
I tried to convert it to JSON object and also tried to get the String straightly from the array. But I got exceptions both time.
JSONArray array = new JSONArray(json)and thenJSONObject object = jsonArray.getJSONObject(i);