I want to extract a value from JSON below using JSONObject. The value is inside dataand in this case is 3:
{
"columns": [
"count(n)"
],
"data": [
[
3
]
]
}
I tried JSONArray jsonMainArr = jsonRes.getJSONArray("data"); and it's displaying [[3]], how to extract that number 3 ?
jsonMainArr[0][0]?