am using objective c and here is my problem..
{
"STATUS":"OK",
"projects":
[
{
"company":
{
"name":"ABC Pvt Ltd.","id":"12345"
},
"created-on":"2012-07-07T04:29:29Z",
"category":
{
"name":"",
"id":""
},
"starred":false,
"name":"MY Platform 1",
"startDate":"",
"logo":"abc.png","notifyeveryone":false,
"id":"70596",
"last-changed-on":"2013-05-20T12:22:11Z",
"status":"active",
"endDate":""
},
{
"company":{
"name":"ABC Pvt Ltd.",
"id":"31222"
},
"created-on":"2012-05-22T07:06:30Z",
"category":{
"name":"","id":""
},
"starred":false,
"name":"Miscellaneous 1",
"startDate":"",
"logo":"abc.png",
"notifyeveryone":false,
"id":"12345",
"last-changed-on":"2013-05-20T12:19:45Z",
"status":"active",
"endDate":""
}
]
}
Above is my json string am retrieving from asihttpRequest
now i want to display the project name eg.MY Platform 1 and Miscellaneous 1
i have just got the array of projects with the following :
NSDictionary* json = [NSJSONSerialization
JSONObjectWithData:data //1
options:kNilOptions
error:&error];
ProjectDetailsarray = [json objectForKey:"projects"];
now can anyone let me know how i get the name of projects as i mentioned above in my table view with two row.
first is MY Platform 1 and second is Miscellaneous 1
i am new to objective c so i tried to solve out but ddint find a way to get the name of the project?