title: Webservice in Monotouch returns XML instead of JSON
body: <p>I trying to get JSON data through a HttpWebRequest object using Monotouch. It works fine in the IPhone Simulator and I get JSON back. But when I run the application in the device, I always get XML back instead of JSON when the web service is invoked..</p>
  
  <p>Is there any specific configuration parameters I would have to set to get the results as JSON, when running from the IPhone ? I am running this on IPhone 5 , ios 6..</p>
  
  <p>Here is my code..</p>
  
  <pre><code>var request = HttpWebRequest.Create(String.Format (@"{0}/GetActiveProductCountAfterID/filter?minID={1}",baseUrl, lastProductNumberInDatabase));
  Logger.Debug("Request URL is: " + request.RequestUri);
  request.ContentType = @"application/json";  
  request.Method = "GET";
  try{
       using (HttpWebResponse response = request.GetResponse() as HttpWebResponse)
       {
          if (response.StatusCode != HttpStatusCode.OK)
             Console.Out.WriteLine("Error fetching data. Server returned status code: {0}", response.StatusCode);
          using (StreamReader reader = new StreamReader(response.GetResponseStream()))
          {
              string content = reader.ReadToEnd();
  ........
  </code></pre>
  
  <p>When I run in the simulator, I get content as an integer..for example: 3456</p>
  
  <p>But when I run it from the IPhone, I get </p>
  
  <pre><code>&lt;int xmlns="http://schemas.microsoft.com/2003/10/Serialization/"&gt;3456&lt;/int&gt;
  </code></pre>