title: How to parse JSON with multiple instance in Object C
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8356842/how-to-use-nsjsonserialization">How to use NSJSONSerialization</a>  </p>
  </blockquote>
  
  
  
  <p>I am testing to use the web service of my website on iphone Application.
  The JSON with problem is that:</p>
  
  <pre><code>[
      {
          "name": "Jason1",
          "age": 20
      },
      {
          "name": "Jason2",
          "age": 40
      },
      {
          "name": "Jason3",
          "age": 60
      }
  ]
  </code></pre>
  
  <p>And my codes:</p>
  
  <pre><code>   NSData *jasonData = [NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://localhost:3000/all_personal_information.json"]];
      NSDictionary *json = nil;
      if (jasonData) {
          json = [NSJSONSerialization JSONObjectWithData:jasonData options:kNilOptions error:nil];
      }
  </code></pre>
  
  <p>The code work fine with <code>{"name":"jason","age":20}</code>
  and I can get the values by using <code>json[@"name"]</code> and <code>json[@"age"]</code></p>
  
  <p>But i don't know how to get the value from the JSON with problem.
  I tried to use  <code>[json enumerateKeysAndObjectsWithOptions]</code> to transverse the dictionary.
  But I will get an error:</p>
  
  <pre>enumerateKeysAndObjectsWithOptions:usingBlock:]: unrecognized selector sent to instance 0x89b2490</pre>
  
  <p>But I can get the full JSON when I Log the <code>[json description]</code> into console.</p>