title: How to convert data string to json object and string in iOS?
body: <p>How to convert string to JSON object or JSON array in iOS?
  my JSON string Like That.</p>
  
  <pre><code>{"Data": [{"ID":"1","Name":"Raj"},{"ID":"2","Name":"Rajneesh"}]}
  </code></pre>
  
  <p>I want to get ID or Name from this string please help me if anyone now this.</p>
  
  <p>Thank You.</p>
  
  <p>I try below code but print null</p>
  
  <pre><code>  NSString *JsonString=@"{"Data": [{"ID":"1","Name":"Raj"},{"ID":"2","Name":"Rajneesh"}]}";
      NSData *objectData = [JsonString dataUsingEncoding:NSUTF8StringEncoding];
      NSDictionary *json = [NSJSONSerialization JSONObjectWithData:objectData options:0 error:&amp;error];
      NSArray* array = [json objectForKey:@"Data"];
      NSLog(@"Print Array %@",array);
  </code></pre>