title: Unrecognized selector when parsing JSON
body: <p>So I have the photograph below which is a screenshot I took of a JSON script I am trying to read from a URL. In the code section below, I managed to get the 'name' attribute and assign it to the 'name' NSString object, but when I try do the same for 'address' I get the following error:</p>
  
  <pre><code>[__NSCFDictionary objectAtIndexedSubscript:]: unrecognized selector sent to instance 0x174260980
  *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFDictionary objectAtIndexedSubscript:]: unrecognized selector sent to instance 0x174260980'
  </code></pre>
  
  <p>whats the difference between how I did it inside 'venues' than inside 'location'? I tried many different ways to do it, some including arrays, but nothing seems to work. </p>
  
  <p><img src="https://i.stack.imgur.com/hJ7aq.png" alt="enter image description here"></p>
  
  <pre><code>NSURL *url = [NSURL URLWithString:urlString];
  
  NSData *jsonData = [NSData dataWithContentsOfURL:url];
  NSError *error = nil;
  NSDictionary *dataDictionary = [NSJSONSerialization JSONObjectWithData:jsonData options:0 error:&amp;error];
  
  NSDictionary *responseDictionary = [dataDictionary objectForKey:@"response"];
  NSDictionary *venueDictionary = [responseDictionary objectForKey:@"venues"];
  
  for (NSDictionary *dict in venueDictionary) {
      NSLog(@"%@", dict);
      NSString *name = [dict objectForKey:@"name"];
      NSDictionary *locationDictionary = [dict objectForKey:@"location"];
      for (NSDictionary *locationDict in locationDictionary) {
          NSString *address = [locationDict objectForKey:@"address"];
          NSLog(@"%@", address);
      }
  }
  </code></pre>