I need some help with JSON. I get a JSON as follows:
{
"1": {
"id": "1",
"position": "1",
"Category": {
"id": "1",
"position": "1",
"created_at": "2012-10-24 15:42:47",
"updated_at": "2012-11-13 13:46:25",
"name": "ABCD"
}
}
}
and I want to get all data from field Category.
I try this way:
JSONObject categoryObject = json.getJSONObject("Category");
but I get error:
no value for Category. How I can get data for Category field?
etc