This is my JSONObject :
{
"per_page": 3,
"total": 12,
"data": [{
"color": "#98B2D1",
"year": 2000,
"name": "cerulean",
"id": 1,
"pantone_value": "15-4020"
}, {
"color": "#C74375",
"year": 2001,
"name": "fuchsia rose",
"id": 2,
"pantone_value": "17-2031"
}
],
"page": 1,
"total_pages": 4
}
From this i should get all the keys including per_page
,total
,data
,color
,year
,pantone_value
,name
,page
and total_pages
If i use JSONObject.names() or JSONObject.keySet() . I only get the outermost keys