title: Replacement for AFJSONRequestOperation in AFNetworking 2.x
body: <p>I am making a basic iPhone app with HTML Requests, by following <b><a href="http://mobile.tutsplus.com/tutorials/iphone/ios-sdk_afnetworking/" rel="nofollow noreferrer">this tutorial.</a></b></p>
  
  <p>The tutorial has me using AFJSONRequestOperation in AFNetworking.  The trouble is, I'm using AFNetworking version 2, which no longer has AFJSONRequestOperation.</p>
  
  <p>So, of course, this code (from about half-way down the tutorial, under the heading "<i>Querying the iTunes Store Search API</i>") doesn't compile:</p>
  
  <pre><code>NSURL *url = [[NSURL alloc]
      initWithString:
      @"http://itunes.apple.com/search?term=harry&amp;country=us&amp;entity=movie"];
  NSURLRequest *request = [[NSURLRequest alloc] initWithURL:url];
  AFJSONRequestOperation *operation =
      [AFJSONRequestOperation JSONRequestOperationWithRequest:request
      success:^(NSURLRequest *request, NSHTTPURLResponse *response, id JSON) {
          NSLog(@"%@", JSON);
      } failure:^(NSURLRequest *request, NSHTTPURLResponse *response,
          NSError *error, id JSON) {
              NSLog(@"Request Failed with Error: %@, %@", error, error.userInfo);
      }];
  [operation start];
  </code></pre>
  
  <p>My question is, what do I replace AFJSONRequestOperation with so that I can keep working with AFNetworking 2.x?  I've googled this and found that no one else seems to be asking this question.</p>