title: Parse JSON contents in local file
body: <p>How can I parse my JSON file stored in the application?</p>
  
  <p>These are in my JSON file contents:</p>
  
  <pre><code>[{"number":"01001","lieu":"paris"}{"number":"01002","lieu":"Dresden"}]
  </code></pre>
  
  <p>I’ve tried the following code:</p>
  
  <pre><code>NSString *filePath = [[NSBundle mainBundle] pathForResource:@"file" ofType:@"json"];
  
  //création d'un string avec le contenu du JSON
  NSString *myJSON = [[NSString alloc] initWithContentsOfFile:filePath encoding:NSUTF8StringEncoding error:NULL];   
  
  //Parsage du JSON à l'aide du framework importé
  NSDictionary *json    = [myJSON JSONValue];
  
  NSArray *statuses    =  [json objectForKey:@"number"];
  
  for (NSDictionary *status in statuses)
  {
      NSLog(@"%@ ", [status objectForKey:@"lieu"]);
  }
  </code></pre>