title: Json parsing using http post method not working
body: <p>i have to parse a json using http post method but i am always getting the response that the method not been implemented.But it works for post method.this is my code</p>
  
  <pre><code>NSString *password = txtPassword.text;
  NSArray *objects = [NSArray arrayWithObjects:@"sintu",@"sintugeorge",@"auth.gettoken", nil];
  NSArray *keys = [NSArray arrayWithObjects:@"username",@"password",@"method",  nil];
  NSDictionary *theRequestDictionary = [NSDictionary dictionaryWithObjects:objects forKeys:keys];
  NSString *theBodyString = [theRequestDictionary JSONRepresentation];
  NSData *theBodyData =  [theBodyString dataUsingEncoding:NSUTF8StringEncoding];
  NSString *postLength = [NSString stringWithFormat:@"%d", [theBodyData length]];
  
  NSURL *theURL = [NSURL URLWithString:@"http://192.168.1.11/elggapi/services/api/rest/json"];
  NSMutableURLRequest *theRequest = [[[NSMutableURLRequest alloc] init] autorelease];
  [theRequest setURL:theURL];
  [theRequest setHTTPMethod:@"POST"];
  [theRequest setValue:postLength forHTTPHeaderField:@"Content-Type"];
  [theRequest setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"Content-Type"];
  [theRequest setHTTPBody:theBodyData];
  
  NSLog(@"%@", theBodyString);
  NSURLResponse *theResponse = NULL;
  NSError *theError = NULL;
  NSData *theResponseData = [NSURLConnection sendSynchronousRequest:theRequest returningResponse:&amp;theResponse error:&amp;theError];
  NSString *theResponseString = [[[NSString alloc] initWithData:theResponseData encoding:NSUTF8StringEncoding] autorelease];
  // NSLog(theResponseString);
  NSDictionary *theResponseDictionary =(NSDictionary*)[theResponseString JSONValue] ;
  
  NSLog(@"%@", theResponseDictionary);
  </code></pre>