title: REST API response includes "This XML file does not appear..."
body: <p>I've created a REST API but when I call it with a GET, it returns this: </p>
  
  <pre><code>This XML file does not appear to have any style information associated with it. The document tree is shown below.
  
  &lt;ArrayOfgetSiteList xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Thor"&gt;
  &lt;getSiteList&gt;
  &lt;responseCode&gt;1&lt;/responseCode&gt;
  &lt;responseMessage&gt;No message&lt;/responseMessage&gt;
  &lt;sites&gt;
  &lt;Sites&gt;
  &lt;siteAddress&gt;11 Main Street054656&lt;/siteAddress&gt;
  &lt;siteId&gt;1&lt;/siteId&gt;
  &lt;siteName&gt;Sky Towers&lt;/siteName&gt;
  &lt;/Sites&gt;
  &lt;Sites&gt;
  &lt;siteAddress&gt;1 Grande Street&lt;/siteAddress&gt;
  &lt;siteId&gt;2&lt;/siteId&gt;
  &lt;siteName&gt;Hotel Grande&lt;/siteName&gt;
  &lt;/Sites&gt;
  &lt;/sites&gt;
  &lt;/getSiteList&gt;
  &lt;/ArrayOfgetSiteList&gt;
  </code></pre>
  
  <p>How do I get it to return just the JSON text within the square brackets, and not the "This XML file..." part? Are there some headers I am supposed to add to the response, and if so how/where do I add it?</p>
  
  <p>Also, how do I get it to be formatted/indented nicely like <a href="http://echo.jsontest.com/key/value/mykey/myvalue/anotherkey/anothervalue" rel="nofollow">http://echo.jsontest.com/key/value/mykey/myvalue/anotherkey/anothervalue</a>?</p>
  
  <p>Thanks for the help.</p>