title: NSSingleObjectArrayI error when JSON Parsing in iOS?
body: <p>In My code when I am Parse the API I got the error like the __NSSingleObjectArrayI has nil, but is the Array have Values. </p>
  
  <p>Here I Gave my Part of Code..</p>
  
  <pre><code>latitudeArray = [monumentArray valueForKey:@"lat"];
          NSLog(@"latitudeArray is %@",latitudeArray);
          longitudeArray = [monumentArray valueForKey:@"lng"];
          NSLog(@"longitudeArray is %@",longitudeArray);
  
  for (int i = 0; i&lt;3; i++) {
  
              CLLocation *locationA = [[CLLocation alloc] initWithLatitude:[latStr doubleValue] longitude:[longStr doubleValue]];
              CLLocation *locationB = [[CLLocation alloc] initWithLatitude:[[latitudeArray objectAtIndex:i] doubleValue] longitude:[[longitudeArray objectAtIndex:i] doubleValue]]; ----------&gt; This Line I Got The Crash Error..
  
              CLLocationDistance distanceInMeters = [locationA distanceFromLocation:locationB];
              NSLog(@"distanceInMeters is %f",distanceInMeters);
              float i  = distanceInMeters/1000;
              NSLog(@"distance between two places is %f KM", i);
  
              //[locationDistances addObject:distanceInMeters];
          }
  </code></pre>
  
  <p>What is the meaning of NSSingleObjectArrayI?</p>
  
  <pre><code>*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSSingleObjectArrayI objectAtIndex:]: index 1 beyond bounds [0 .. 0]'
  </code></pre>
  
  <p>Please help me for resolve it.</p>
  
  <p>The latitudeArray has values...</p>
  
  <pre><code>latitudeArray is (
      (
              (
                      (
                              (
                  "27.1753210000",
                  "27.1798189999",
                  "27.1928780000"
              )
          )
      )
  )
  </code></pre>
  
  <p>)</p>