iphone - How to Parse this Data -


i new iphone can not understand how parse data that, display result in table view. following data result of afhttprequestoperation when call api of megento.

{         "callforprice_id" = 13;         country = austria;         "created_time" = "2013-05-03 12:03:05";         emailid = "indies.tester@gmail.com";         message = hfhftrfygjh;         name = "richard conover";         "phone_no" = 8977896;         "product_name" = ottoman;         "product_options" = "";         "update_time" = "0000-00-00 00:00:00";     },         {         "callforprice_id" = 12;         country = "antigua , barbuda";         "created_time" = "2013-05-03 12:01:24";         emailid = "indies.tester@gmail.com";         message = sdfsdfsdfwe;         name = "richard conover";         "phone_no" = 5645;         "product_name" = ottoman;         "product_options" = "";         "update_time" = "0000-00-00 00:00:00";     },         {         "callforprice_id" = 11;         country = angola;         "created_time" = "2013-05-03 11:58:51";         emailid = "indies.tester@gmail.com";         message = 6tyrtyryrty;         name = "kaitlyn matheson";         "phone_no" = 564564;         "product_name" = ottoman;         "product_options" = "";         "update_time" = "0000-00-00 00:00:00";     } 

  1. take in nsarray *jsondataarray.
  2. in tableview numberofrowsinsection use return [jsondataarray count];
  3. in tableview selectrowatindexpath take nsdictionary *dictionary = (nsdictionary *)[jsondataarray objectatindex:indexpath.row]; in dictionary, you'll each object separately
  4. then can access element [dictionary objectforkey:@"attribute_name"];

Comments