title: parse JSON in objectiveC (SBJSON) objects and arrays
body: <p>So far I've discovered in JSON that everything enclosed in { } are objects (objC : NSDictionary) and anything enclosed in [ ] is an array (objC : NSArray).</p>
  
  <p>I've read and re-read this article about the subject>
  <a href="https://stackoverflow.com/questions/4919249/how-to-parse-json-into-objective-c-sbjson">How to parse JSON into Objective C - SBJSON</a></p>
  
  <p>I have a .json file with the data modeled like this:<br>
  <a href="http://elbee101.com/dummySchedule.json" rel="nofollow noreferrer">http://elbee101.com/dummySchedule.json</a></p>
  
  <p>...and now for the code:</p>
  
  <pre><code>SBJSON *parser = [[SBJSON alloc] init];
  NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://elbee101.com/dummySchedule.json"]];
  NSData *response = [NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil];
  NSString *json_string = [[NSString alloc] initWithData:response encoding:NSUTF8StringEncoding];
  
  NSDictionary *schedule = [parser objectWithString:json_string error:nil];
  NSDictionary *day = [schedule objectForKey:@"day"];
  NSArray *myList = [day objectForKey:@"name"];
  NSLog(@"myList %@", myList);
  NSArray *numLaps = [myList objectAtIndex:0];
  NSLog(@"numlaps%@ ",  numLaps);
  </code></pre>
  
  <p>I'm getting "myList (null)" and "numlaps (null)" from the above code?!@</p>
  
  <p>The question: Can somebody please set me straight on the ordering of objects and arrays with respect to my json data? I want to drill down the tree so that I can access the 'day name', 'session starttime/endtime/sessionname', 'numlaps' &amp; 'class' but I can't seem to get past the 'day' object/array(?) </p>