title: iOS AFJSONRequestOperation returns empty results
body: <p>I am trying to retrieve data using from a JSON request using AFJSONRequestOperation.
  On success I am able to successfully retrieve the data but unable to complete the request and forward the data further for processing.</p>
  
  <p>Following is my code</p>
  
  <pre><code>-(void) retrieveBrandList:(void (^)(NSArray *brandList))success failure:(void (^)(NSError *error))failure
  {
      //__block NSArray *brandList =[[NSArray alloc] init];
  
      NSString *BrandListURL= http://127.0.0.1:8888/know/rest/brand
      NSURLRequest *request = [NSURLRequest requestWithURL:url];
  
  
      NSLog(@"Brand List URL = %@", BrandListURL);
  
      AFJSONRequestOperation *operation =[AFJSONRequestOperation
                                          JSONRequestOperationWithRequest: request
                                          success:^(NSURLRequest *request, NSHTTPURLResponse *response, id responseObject)
                                          {
                                              NSLog(@"%@", responseObject);
                                              brandList = [self successBandList:responseObject]; // parsing the JSON response in separate method (success block code)
                                              if (success)
                                                  success(brandList);
                                          }
  
                                          failure:^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, id responseObject)
                                          {
                                          message:[NSString stringWithFormat:@"%@",error];
                                              if (failure)
                                                  failure(error);
                                          }];
  
      [operation start];
      [operation waitUntilFinished];
  
  }
  </code></pre>
  
  <p>Following is the data manager to retrieve data.</p>
  
  <pre><code>- (NSArray *)getBrandList
  {
      @try
      {
  
         [brand retrieveBrandList:^(NSArray *brandList)
          {
          brands = brandList;
          }
          failure:^(NSError *error) {
          }];
  
          NSLog(@"Retriving Brand list completed");
          return brands;
      }
  
      @catch (NSException * e) {
          NSLog(@"Exception: %@ , Error while getting the brand list", e);
      }
  
      return NULL;
  
  }
  </code></pre>
  
  <p>How do i complete the operation and use or store the results for further processing in some other method?</p>