title: AFNetworking parsing json deeper
body: <p>I´m using AFNetworking to parse some json and absolutely love it.</p>
  
  <p>Now i want to go a lever deeper. My json output looks something like this</p>
  
  <pre><code>-result
    -0
      rezept_id : value1
      rezept_name : value2
      rezept_zubereitung : value3
  </code></pre>
  
  <p>Everything works fine until here and I can parse the value. But now it goes on like this </p>
  
  <pre><code>-rezept_bilder
    -0    
      -bigfix
  
        file : value4
        file_path : value5
  </code></pre>
  
  <p>Now I want to parse the json attribute file value (value4) and display it in an image view. To display the image i would do something like this if it would be on the main.</p>
  
  <pre><code>[self.restuarantImageView setImageWithURL:[NSURL URLWithString:[self.restuarantDetail objectForKey:@"file"]]];
  </code></pre>
  
  <p>but how do i tell him that the file value is not on the main but under </p>
  
  <pre><code>-rezept_bilder
   -0
    - bigfix
  </code></pre>
  
  <p>Here is the code I am using to parse the data to that point where I'm stuck. </p>
  
  <pre><code>-(void)makeRestuarantsRequests3{
  
  
      NSURL *url = [NSURL URLWithString:@"http://api.chefkoch.de/api/1.0/api-recipe.php?    zufall=1&amp;divisor=0&amp;limit=1"];
  
     NSURLRequest *request = [NSURLRequest requestWithURL:url];
  
  AFJSONRequestOperation *operation = [AFJSONRequestOperation JSONRequestOperationWithRequest:request
                                                                                      success:^(NSURLRequest *request, NSHTTPURLResponse *response, id responseObject) {
                                                                                          self.googlePlacesArrayFromAFNetworking3 = [responseObject objectForKey:@"result"];
                                                                                          NSDictionary *tempDictionary3= [self.googlePlacesArrayFromAFNetworking3 objectAtIndex:0];
                                                                                        self.zubereitung.text = [tempDictionary3 objectForKey:@"rezept_zubereitung"];
                                                                                               self.Name.text = [tempDictionary3 objectForKey:@"rezept_name"];
  
  
                                                                                      }
                                                                                      failure:^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, id responseObject) {
                                                                                          NSLog(@"Request Failed with Error: %@, %@", error, error.userInfo);
  
  
                                                                                      }];
  </code></pre>
  
  <p>Thanks in advance and sorry for my bad english, hope you guys understand where my problem is!</p>
  
  <p>-----------EDIT</p>
  
  <p>thanks got it working now :D</p>
  
  <p>you realy healed me </p>
  
  <p>this is how i did it</p>
  
  <pre><code>-(void)makeRestuarantsRequests3{
  
  
  NSURL *url = [NSURL URLWithString:@"http://api.chefkoch.de/api/1.0/api-recipe.php?zufall=1&amp;divisor=0&amp;limit=1"];
  
     NSURLRequest *request = [NSURLRequest requestWithURL:url];
  
  AFJSONRequestOperation *operation = [AFJSONRequestOperation JSONRequestOperationWithRequest:request
                                                                                      success:^(NSURLRequest *request, NSHTTPURLResponse *response, id responseObject) {
                                                                                          self.googlePlacesArrayFromAFNetworking3 = [responseObject objectForKey:@"result"];
                                                                                          NSDictionary *tempDictionary3= [self.googlePlacesArrayFromAFNetworking3 objectAtIndex:0];
                                                                                        self.zubereitung.text = [tempDictionary3 objectForKey:@"rezept_zubereitung"];
                                                                                               self.Name.text = [tempDictionary3 objectForKey:@"rezept_name"];
  
  
                                                                                          self.googlePlacesArrayFromAFNetworking5 =[tempDictionary3 objectForKey:@"rezept_bilder"];
  
                                                                                          NSDictionary *tempDictionary4= [self.googlePlacesArrayFromAFNetworking5 objectAtIndex:0];
  
                                                                                          NSDictionary *tempDictionary5 = [tempDictionary4 objectForKey:@"bigfix"];
  
  
                                                                                          [self.Bild setImageWithURL:[NSURL URLWithString:[tempDictionary5 objectForKey:@"file"]]];
  </code></pre>