title: NSAarry to NSDictionary
body: <p>I have an NSArray that looks like this</p>
  
  <pre><code>NSDictionary *dataDict = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:nil];
  NSLog(@"main: %@", [dataDict valueForKey:@"main"]);
  main: [{"city": "dallas", "description": "this is my test description"}]
  </code></pre>
  
  <p>And I am trying to turn it into a NSDictionary so I get get element like <code>[mainDict objectForKey@"city"]</code></p>
  
  <p>So I tried this</p>
  
  <pre><code>NSLog(@"%@", [[mainArray objectAtIndex:0] objectForKey:@"city"]);
  </code></pre>
  
  <p>Thinking it would get the first element in <code>mainArray</code> and then the object that I want but I keep getting this error</p>
  
  <pre><code>[__NSCFString objectAtIndex:]: unrecognized selector sent to instance
  </code></pre>
  
  <p>How can I make the NSAarry into a NSDictionary?</p>
  
  <p>Thanks</p>