I am trying to parse a JSON file in the following structure
{
"category": {
"subcat_1": [
{
"item1": "xx"
},
{
"item2": "xx"
}
],
"subcat_2": [
{
"item1": "xx"
},
{
"item2": "xx"
}
]
}
}
It is working when am using getJSONArray("subcat_1") but, i want to get these string without the need to pre-save them in an array { subcat_1, subcat_2, ... } to maintain the dynamic feature?