title: Parse json from URL in objective c
body: <p>I am trying to parse some JSON from a URL in objective C.</p>
  
  <p>The output is fine, however, when I try to get the value of the notifications.id key it returns a SIGBRT error.</p>
  
  <p>Code:</p>
  
  <pre><code>NSDictionary *jsonData = [NSJSONSerialization
                                   JSONObjectWithData:data
                                   options:NSJSONReadingMutableContainers
                                   error:&amp;serializeError];
  
       success = [jsonData[@"ERROR"] integerValue];
  
         if (success == 0) {
            NSLog(@"%@", jsonData[@"notifications"][@"id"]);
         }else{
  
         }
  </code></pre>
  
  <p>Example JSON is:</p>
  
  <blockquote>
    <p>{"notifications":[{"id":"fae9a890-2791-46e2-ad9c-5a72f602a2e8","created":"2017-06-17T21:57:28+00:00","thread_id":3964,"reply_id":null,"thread":{"id":3964,"subject":"[CakePHP]
    Pagination"},"users_from":{"username":"Royal"},"content":"has posted a
    reply
    in"},{"id":"00732627-f23e-423e-b885-add968575972","created":"2017-06-17T20:08:05+00:00","thread_id":3964,"reply_id":79478,"thread":{"id":3964,"subject":"[CakePHP]
    Pagination"},"users_from":{"username":"Royal"},"content":"has quoted
    you in"}]}</p>
  </blockquote>
  
  <p>How can I fix this? </p>
  
  <p>Thanks.</p>