I want to parse the following JSON response. I couldn’t extract the JSONArray which is inside the JSON object. I’m a novice to JSON parsing, any help would be appreciated.
{
"Result": {
"Data": [
{
"id": "1",
"Name": "ABC",
"release": "8",
"cover_image": "august.png",
"book_path": "Aug.pdf",
"magazine_id": "1",
"Publisher": "XYZ",
"Language": "Astrological Magazine",
"Country": "XYZ"
},
{
"id": "2",
"Name": "CDE",
"release": "8",
"cover_image": "august2012.png",
"book_path": "aug.pdf",
"magazine_id": "2",
"Publisher": "XYZ",
"Language": "Astrological Magizine",
"Country": "XYZ"
}
]
}
}
Basic code for implementing JSON Parsing is like:
Update:
Based on your comment, i can see you haven’t fetched JSONArray “Data”, without it you are trying to fetch values/attributes of a particular object: