title: -[__NSCFDictionary objectAtIndex:]: unrecognized selector sent to instance
body: <p>I'm trying to parse through an API for my iOS app. However, for some reason the API returns JSON that I can't seem to parse (using NSJSONSerialization). Since I don't know the names of player1 and player 2 constantly I can't use objectForKey (which in testing, ex knowing player1 is the name of a player etc, works). So I use objectAtIndex which causes a crash, "-[__NSCFDictionary objectAtIndex:]: unrecognized selector sent to instance".<br>
  <strong>JSON:</strong></p>
  
  <pre><code>{
    "id": "idnumb",
    "numentrants": 2,
    "entrants": {
      "player1": {
      "displayname": "player1",
      "otherdata": 1234,
      },
      "player2": {
        "displayname": "player2",
        "otherdata": 5678,
      }
    }
  }
  </code></pre>
  
  <p><strong>Obj C:</strong></p>
  
  <pre><code>NSError *jsonParsingError = nil;
  NSDictionary *eventArray = [NSJSONSerialization JSONObjectWithData:data options:0 error:&amp;jsonParsingError];
  
  for(int i = 0; i &lt; [[eventArray objectForKey:@"entrants"] count]; i++)
  {
     NSArray *entrantsArray = [[eventArray objectForKey:@"entrants"] objectAtIndex:i];
     NSLog(@"%@", entrantsArray);
  }
  </code></pre>
  
  <p>Thanks</p>