title: Angularjs $http "XML Parsing Error: no element found Location" error when expecting JSON results on GET
body: <p>When I submit an <strong>angularjs</strong> <code>$http</code> GET call I receive an XML parsing error.</p>
  
  <p>The $http call code snippet is:</p>
  
  <pre><code>$http({
      method: 'GET',
      url: "myapp/api/items" + itemId
   });
  </code></pre>
  
  <p>The error is:  </p>
  
  <pre><code>XML Parsing Error: no element found Location: moz-nullprincipal:{f191853f-5581-b049-b83f-5f4b69211adb} Line Number 1, Column 1:
  </code></pre>
  
  <p>The data being returned is JSON. If I put the URL in a browser then the request is submitted and the response data comes back successfully in the browser.</p>
  
  <p>I tried adding <code>responseType: 'json'</code> (and <code>responseType: 'application/json'</code>) to the <code>$http</code> call with no success. (I referenced the Usage section in <a href="https://code.angularjs.org/1.2.16/docs/api/ng/service/%24http" rel="noreferrer">angularjs http</a> doc to determine how to configure the call.)</p>
  
  <p>Is there a way I can force the response data to be recognize as json to avoid that error?</p>