title: How to pass NSDictionary as a parameter in AFNETWORKING IOS
body: <pre><code> NSMutableDictionary *mainLoginDict=[[NSMutableDictionary alloc]init];
      NSMutableDictionary *logindict = [[NSMutableDictionary alloc] init];
      [logindict setObject:_emailtext.text forKey:@"email"];
      [logindict setObject:_passwordtext.text forKey:@"password"];
      [logindict setObject:@"" forKey:@"fbid"];
      // [logindict setObject:@"" forKey:@"twitter_id"];
      [mainLoginDict setObject:logindict forKey:@"login"];
  
      NSLog(@"The dictionary %@",mainLoginDict);
  
      NSError *writeError = nil;
      NSData *requestData = [NSJSONSerialization dataWithJSONObject:mainLoginDict options:NSJSONWritingPrettyPrinted error:&amp;writeError];
  
      NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"%@login",QSURL]];
  
      NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url
                                                             cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:1660.0];
  
  
      //  NSData *requestData = [NSData dataWithBytes:[jsonRequest UTF8String] length:[jsonRequest length]];
  
      [request setHTTPMethod:@"POST"];
      [request setValue:@"application/json" forHTTPHeaderField:@"Accept"];
      [request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
      [request setValue:[NSString stringWithFormat:@"%lu", (unsigned long)[requestData length]] forHTTPHeaderField:@"Content-Length"];
      [request setHTTPBody: requestData];
  
      NSError *error;
      NSURLResponse *response;
      NSData *urlData=[NSURLConnection sendSynchronousRequest:request returningResponse:&amp;response error:&amp;error];
      //   NSString *XMLString=[[NSString alloc]initWithData:urlData encoding:NSUTF8StringEncoding];
      NSArray  *jsonDic = (NSArray *)[NSJSONSerialization JSONObjectWithData:urlData options:kNilOptions error:&amp;error];
  
  
      NSLog(@"the  is %@",jsonDic);
  </code></pre>
  
  <p>This is the code which as using as a synchronous request. Am a rookie in AFNetworking can someone help me on hwo i can pass dictionary like this with the help of AFNetworking .</p>