title: JSON Parsing in Objective-C
body: <p>I've done the Raywenderlich tutorial about JSON in iOS but I got difficulties to adapt it to my own JSON file. Here is <strong>my JSON</strong>: </p>
  
  <pre><code>{
      "Albumvideo":[
      {
          "titre": "PublicitÃ©",
          "photo":"blabla.jpg"
      },
      {
          "titre": "Events",
          "photo":"blabla.jpg"
      }
      ]
  }
  </code></pre>
  
  <p>Here is <strong>my Code</strong>:</p>
  
  <pre><code>- (void) viewDidLoad
  {
      [super viewDidLoad];
      dispatch_async (kBgQueue, ^{
           NSData* data = [NSData dataWithContentsOfURL:lienAlbumsVideo];
          [self performSelectorOnMainThread:@selector(fetchedData:)withObject:data waitUntilDone:YES];
      });
  }
  
  - (void)fetchedData:(NSData *)responseData {
       NSError* error;
       NSDictionary* json = [NSJSONSerialization JSONObjectWithData:responseData options:kNilOptions error:&amp;error];
       NSArray* albumsvideo = [json objectForKey:@"titre"];
       NSLog(@"Album: %@", albumsvideo);
  }
  </code></pre>
  
  <p>Log returns <code>null</code>.</p>