I'm playing with the JSON
parser in iOS.
But I was wonder how one would actually parse something (a bit) more complicated, my JSON
shows data like this :
"terms":"3",
"results":
{
"Events":[
{
"Event_Name":"3 Doors Down",
"Event_NavigateURL":"3-doors-down"
},
{
"Event_Name":"Alabama 3",
"Event_NavigateURL":"alabama-3"
},
{
"Event_Name":"Belsonic 2013",
"Event_NavigateURL":"belsonic-2013"
},
{
"Event_Name":"Download Festival 2013",
"Event_NavigateURL":"download-festival-2013"
}
],
"Sports":{
},
"Venues":{
}
}
I want to fetch value of Event_Name
, and want to store it in Tableview, How should i fetch this ?
I tried this, but didn't success i am getting SIGABRT ... (NSInvalidArgumentException)
,
cell.textLabel.text = [[[[arr objectAtIndex:indexPath.row] objectAtIndex:@"results"] objectForKey:@"Events"] objectForKey:@"Event_Name"];
Thanks In Advance...