title: Objective C Parsing JSON, Dictionary returns a NSCFString instead of NSArray
body: <p>What I'm trying to do is take a JSON feed and then loop through the results. However I keep getting a string instead of an array when I get the object from the dictionary. Any ideas on what I'm doing wrong?</p>
  
  <p>Here's the JSON:</p>
  
  <pre><code>[
    {
      "_id": "4f6d9a7c1d0b4900010007ee",
      "geo_triggers": [
        {
          "_id": "4fc3e5fdc7234e0001000002",
          "location": [1,1],
          "longitude": "1",
          "latitude": "1",
          "radius": 1,
          "location_name": "Test 1"
        },
        {
          "_id": "4fc61f3762f53f0001000043",
          "location": [-71.057673,42.355395],
          "longitude": "-71.057673",
          "latitude": "42.355395",
          "radius": 1000,
          "location_name": "Test2"
        }
      ]
    }
  ]
  </code></pre>
  
  <p>Here's the Objective C Code:</p>
  
  <pre><code>const char* className = class_getName([result class]);
  NSLog(@"Result is a: %s", className);
  NSLog(@"%@", result); //string
  NSArray* json = [result objectForKey:@"result"]; //should be an array of dictionaries
  NSLog(@"JSON Output: %@", json);
  const char* className1 = class_getName([json class]);
  NSLog(@"yourObject is a: %s", className1);
  </code></pre>
  
  <p>And here's the output:</p>
  
  <pre><code>Result is a: __NSDictionaryI
  2012-10-10 17:15:15.165 App[12980:19d03] {
      result = "[{\"_id\":\"4f6d9a7c1d0b4900010007ee\",\"geo_triggers\":[{\"_id\":\"4fc3e5fdc7234e0001000002\",\"location\":[1.0,1.0],\"longitude\":\"1\",\"latitude\":\"1\",\"radius\":1,\"location_name\":\"Test 1\"},{\"_id\":\"4fc61f3762f53f0001000043\",\"location\":[-71.057673,42.355395],\"longitude\":\"-71.057673\",\"latitude\":\"42.355395\",\"radius\":1000,\"location_name\":\"Test2\"}]}]";
  }
  2012-10-10 17:15:15.166 App[12980:19d03] JSON Output: [{"_id":"4f6d9a7c1d0b4900010007ee","geo_triggers":[{"_id":"4fc3e5fdc7234e0001000002","location":[1.0,1.0],"longitude":"1","latitude":"1","radius":1,"location_name":"Test 1"},{"_id":"4fc61f3762f53f0001000043","location":[-71.057673,42.355395],"longitude":"-71.057673","latitude":"42.355395","radius":1000,"location_name":"Test2"}]}]
  2012-10-10 17:15:15.166 App[12980:19d03] yourObject is a: __NSCFString
  2012-10-10 17:15:15.166 App[12980:19d03] -[__NSCFString countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0xb331800
  </code></pre>