title: How to Parse Nested Dictionary JSON Data in iOS?
body: <p>i am newbie in iOS Development. i want to parse my this JSON Data into to array First array Contain all Data and Second array Contain only  -demopage: array Value.</p>
  
  <pre><code>status: "success",
  -data: [
   {
     mid: "5",
     name: "October 2014",
     front_image: "http://www.truemanindiamagazine.com/webservice/magazineimage/frontimage/01.jpg",
     title: "October 2014",
     release_date: "2014-10-01",
     short_description: "As the name suggest itself “Trueman India” will cover icons of India. Our national Magazine “Trueman India” is an expansion to our business, i",
     current_issue: 0,
   -demopage: [
     {
     link: "http://www.truemanindiamagazine.com/webservice/magazineimage/pageimage/2014/10/01-1413806104.jpg",
     page_no: "1"
     },
     {
     link: "http://www.truemanindiamagazine.com/webservice/magazineimage/pageimage/2014/10/2-1413806131.jpg",
     page_no: "2"
     },
     {
    link: "http://www.truemanindiamagazine.com/webservice/magazineimage/pageimage/2014/10/3-1413806170.jpg",
     page_no: "3"
     }
     ]
    }
    ]
  </code></pre>
  
  <p>Here my main Dictionary Key is data i want data keey value in my One array and demopage key value in to another array here my two Array is self.imageArray and self.imagesa here my code For that</p>
  
  <pre><code>- (void)viewDidLoad
  {
  [super viewDidLoad];
  [self.collectionView registerNib:[UINib nibWithNibName:@"CustumCell" bundle:nil] forCellWithReuseIdentifier:@"CellIdentifier"];
  dispatch_async(kBgQueue, ^{
      data = [NSData dataWithContentsOfURL: imgURL];
      [self performSelectorOnMainThread:@selector(fetchedData:) withObject:data waitUntilDone:YES];
  });
  }
  -(void)fetchedData:(NSData *)responsedata
  {
  NSMutableArray *imagesArray = [[NSMutableArray alloc]init];
  if (responsedata.length &gt; 0)
  {
      NSError* error;
  
      self.json = [NSJSONSerialization JSONObjectWithData:responsedata options:kNilOptions error:&amp;error];
      if ([[_json objectForKey:@"data"] isKindOfClass:[NSArray class]])
      {
          NSArray *arr = (NSArray *)[_json objectForKey:@"data"];
          [self.imageArray addObjectsFromArray:arr];
          [self.storeTable reloadData];
      }
      self.storeTable.hidden=FALSE;
      for (index=0; index&lt;[self.imageArray count]; index++)
      {
          for(NSDictionary *dict in self.imageArray)
          {
              imagesArray = [dict valueForKey:@"demopage"];
              self.imagesa = imagesArray;
          }
          NSLog(@"New Demo page array %@",self.imagesa);
      }
  
  }
  </code></pre>
  
  <p>then i get my data key value and it is ok but i got only last index means here my -data key Contain three -demopage key and i get only last -demopage key value i want all -demopage key value in to self.imagesa please give me solution for that.
  also my Webservices link is  <a href="http://www.truemanindiamagazine.com/webservice/magazine_list.php" rel="nofollow">Link</a></p>