title: How to get JSON responce to HTTP Request
body: <p>WebService is capable of giving response in XML, Plain Text and JSon.</p>
  
  <p>I can successfully get response in XML.
  My concern is, how one can get Response in JSon format (not XML or plain text).</p>
  
  <pre><code>- (void)connectionDidFinishLoading:(NSURLConnection *)connection 
  {
     NSString *responseString = [[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding];
      SBJsonParser *parser = [[SBJsonParser alloc] init];
      NSMutableArray *array = [parser objectWithString:responseString error:nil];
  
      NSString *success = [array valueForKey:@"Successful"];
      NSString *token = [array valueForKey:@"Token"];
  }
  </code></pre>
  
  <p>Above is the code for handling the response (Which i did assume JSon, but it was XML).
  Hence the app is crashing.</p>
  
  <p>Following is the responce which i am getting:</p>
  
  <p><code>&lt;AuthenticatedUser xmlns="http://schemas.datacontract.org/2004/07/XYZCOMPANY.ABC.DataContracts.Mobile" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"&gt;&lt;ErrorMsg i:nil="true"/&gt;&lt;Successful&gt;true&lt;/Successful&gt;&lt;Token&gt;MHlc8yKBgghjkfPHZ2oOvabvMWA=&lt;/Token&gt;&lt;/AuthenticatedUser&gt;</code></p>