title: Cocoa-Touch - How parse local Json file
body: <p>I'm newbie in iOS dev and I'm trying to parse a local Json file such as </p>
  
  <p><code>{"quizz":[{"id":"1","Q1":"When Mickey was born","R1":"1920","R2":"1965","R3":"1923","R4","1234","response","1920"},{"id":"1","Q1":"When start the cold war","R1":"1920","R2":"1965","R3":"1923","rep4","1234","reponse","1920"}]}</code> </p>
  
  <p>here is my code:</p>
  
  <pre><code> NSString *filePath = [[NSBundle mainBundle] pathForResource:@"data" ofType:@"json"];
  NSString *myJSON = [[NSString alloc] initWithContentsOfFile:filePath encoding:NSUTF8StringEncoding error:NULL];
  // Parse the string into JSON
  NSDictionary *json = [myJSON JSONValue];
  
  // Get all object
  NSArray *items = [json valueForKeyPath:@"quizz"];
  
  NSEnumerator *enumerator = [items objectEnumerator];
  NSDictionary* item;
  while (item = (NSDictionary*)[enumerator nextObject]) {
      NSLog(@"clientId = %@",  [item objectForKey:@"id"]);
      NSLog(@"clientName = %@",[item objectForKey:@"Q1"]);
      NSLog(@"job = %@",       [item objectForKey:@"Q2"]);
  }
  </code></pre>
  
  <p>I found on this site a sample but I get the following error</p>
  
  <p>-JSONValue failed. Error is: Token 'value separator' not expected after object key.</p>