I'm new to android developing and I'm learning parsing json data and I'm stuck at parsing multidimensional json data. this is the json data I want to parse.
{
"responseCode": 200,
"message": "Category List",
"category_data": [
{
"id": "24",
"slug": "product",
"category_code": "PC",
"category_image": "Category_1576578421lh5d.png",
"status": "1",
"created_at": "2020-01-10 01:23:22",
"category_name": "ACCESORIES",
"subcategory": [
{
"id": "8",
"category_id": "24",
"slug": "belt",
"subcategory_code": "BELT",
"status": "1",
"created_at": "2019-12-17 08:47:27",
"subcategory_name": "BELT"
},
{
"id": "9",
"category_id": "24",
"slug": "bags",
"subcategory_code": "BAGS",
"status": "1",
"created_at": "2019-12-17 08:47:15",
"subcategory_name": "BAGS"
},
{
"id": "10",
"category_id": "24",
"slug": "hat",
"subcategory_code": "HAT",
"status": "1",
"created_at": "2019-12-17 08:46:28",
"subcategory_name": "HAT"
},
{
"id": "16",
"category_id": "24",
"slug": "underwear",
"subcategory_code": "UW",
"status": "1",
"created_at": "2019-12-17 08:47:47",
"subcategory_name": "UNDERWEAR"
},
{
"id": "17",
"category_id": "24",
"slug": "undershirt",
"subcategory_code": "US",
"status": "1",
"created_at": "2019-12-17 08:47:58",
"subcategory_name": "UNDERSHIRT"
},
{
"id": "18",
"category_id": "24",
"slug": "boxer",
"subcategory_code": "BX",
"status": "1",
"created_at": "2019-12-17 08:48:31",
"subcategory_name": "BOXER"
},
{
"id": "19",
"category_id": "24",
"slug": "shocks",
"subcategory_code": "SC",
"status": "1",
"created_at": "2019-12-17 08:48:40",
"subcategory_name": "SHOCKS"
},
{
"id": "20",
"category_id": "24",
"slug": "slipper",
"subcategory_code": "SLP",
"status": "1",
"created_at": "2019-12-17 08:49:08",
"subcategory_name": "SLIPPER"
},
{
"id": "21",
"category_id": "24",
"slug": "slip-on",
"subcategory_code": "SO",
"status": "1",
"created_at": "2019-12-17 08:48:48",
"subcategory_name": "SLIP ON"
},
{
"id": "22",
"category_id": "24",
"slug": "shoes",
"subcategory_code": "SH",
"status": "1",
"created_at": "2019-12-17 01:13:05",
"subcategory_name": "SHOES"
},
{
"id": "31",
"category_id": "24",
"slug": "updates",
"subcategory_code": "FU",
"status": "1",
"created_at": "2020-01-10 01:42:08",
"subcategory_name": "TERBARU"
}
]
},
please help me parsing this.