title: Getting specific index such students names from json data
body: <p>I am developing simple app in iOS that gets data web api my code returned json data correctly but when I want to specific for example student name from json returned null.
   Here is my data :</p>
  
  <pre><code>{
  Sudent( 
  {
      {"id":"20",
      "name":"Alan",
      "email":"simpl@gmail.com",
      "phone":"1234567890",
      "location":"London"},
   {  
  "id":"40",
      "name":"John",
      "email":"simpl@gmail.com",
      "phone":"1234567890",
      "location":"usa"},
  "id":"50",
      "name":"Nora",
      "email":"simpl@gmail.com",
      "phone":"1234567890",
      "location":"kenya"}, 
  
  })}
  </code></pre>
  
  <p>Here my code that gets data as json and stored NSMutableArray named Student:</p>
  
  <pre><code>-(void)proxydidFinishLoadingData:(id)data InMethod:(NSString*)method
  {
      if ([method isEqualToString:@"getstudentdata"]){
  
         defaultDict = [[NSMutableDictionary alloc]init];
           [defaultDict addEntriesFromDictionary:[NSJSONSerialization JSONObjectWithData:[data dataUsingEncoding:NSUTF8StringEncoding] options:0 error:nil]];
           Student = [defaultDict objectForKey:@"data"];
  
      }
  }
  </code></pre>
  
  <p>this codes it works ok and correctly and returned json data but the problem is when I want to get specific index such as names of students  it is not work it returns null value.
  the code that does this work is here:</p>
  
  <pre><code>NSMutableDictionary *response = [[defaultDict valueForKey:@"data"] mutableCopy];
      NSString *name = [[response valueForKey:@"name"]];
     ];
  
        NSLog(@"%@" ,name);
  </code></pre>
  
  <p>Please help me this to get student names</p>