title: IOS JSON parsing into an objectkey
body: <p>I'm trying to implement the "Checking Duplicate Username" first of all, I have to get my json which stored all the record of my users. and get the object which is the username. Then matching them with the text from the UItTextField. My problem is that I can see all my json but I can't seems to parse it correctly. </p>
  
  <pre><code>-(IBAction) ChkUsername: (id) sender {
      NSDictionary * userdata = [NSDictionary new];
      [DIOSUser userGet: userdata success: ^ (AFHTTPRequestOperation * operation, id response) {
          NSLog(@"%@", response);
          DIOSSession * session = [DIOSSession sharedSession];
          [session setUser: [response objectForKey: @"user"]];
          NSDictionary * uname = [
              [session user] objectForKey: @"name"];
          if ([self.txtUsernameRegister.text isEqualToString: uname]) {
              // if([uname isEqual:self.txtUsernameRegister.text]){
              NSLog(@"You cannot use this Username");
          } else {
              NSLog(@"You can use this username");
          }
      }
      failure: ^ (AFHTTPRequestOperation * operation, NSError * error) {
          NSLog(@"%@", [error localizedDescription]);
      }];
  }
  </code></pre>
  
  <p>I also got this error NSCFArray objectForKey:]</p>
  
  <p>Edit here is how my JSON looks like.</p>
  
  <pre><code>{
  
  uid: "60",
  name: "pae1344",
  mail: "viper1344@gmail.com",
  theme: "",
  signature: "",
  signature_format: "plain_text",
  created: "1396189622",
  access: "0",
  login: "1396189622",
  status: "1",
  timezone: "Asia/Bangkok",
  language: "",
  picture: "0",
  init: "viper1344@gmail.com",
  data: null,
  uri: "http://localhost/drupal/rest/user/60"
  },
  </code></pre>