title: How to add Dictionary as a Request Parameter For HTTPBody in NSJSONSerialization?
body: <p>I am creating one demo Web Services Code without using <code>AFNetworking</code> Framework.
  My <code>HTTP</code> <code>Request</code> Parameter in <code>Dictionary</code>.
  How can I set it on <code>HTTPBody</code>?</p>
  
  <h1>MY Code is as follow</h1>
  
  <pre><code>NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:aUrl];
  
  [request setHTTPMethod:@"POST"];
  
  NSString *postString = "Request Parameter";
  
  [request setHTTPBody:[postString dataUsingEncoding:NSUTF8StringEncoding]];
  
  NSURLSession *session = [NSURLSession sessionWithConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration]];
  
  [[session dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
      NSString *requestReply = [[NSString alloc] initWithData:data encoding:NSASCIIStringEncoding];
  //  NSLog(@"requestReply: %@", requestReply);
  
      NSError *jsonError;
      NSData *objectData = [requestReply dataUsingEncoding:NSUTF8StringEncoding];
      NSDictionary *json = [NSJSONSerialization JSONObjectWithData:objectData
                                                           options:NSJSONReadingMutableContainers
                                                             error:&amp;jsonError];
      NSLog(@"requestReply: %@", json);
  
  }] resume];
  </code></pre>