title: What do browsers want for the Content-Type header on json ajax responses?
body: <p>I am returning some json which needs to be handled by javascript as the response to an XMLHTTPRequest.</p>
  
  <p>If I set the response's content type to "text/plain", all browsers but Chrome will accept it and pass it to my JS with no problem. However, Chrome will wrap the response in </p>
  
  <pre><code>&lt;pre style="word-wrap: break-word; white-space: pre-wrap;"&gt; 
  </code></pre>
  
  <p>before passing it to my javascript.</p>
  
  <p>If I set the response's content type to the "proper"  "application/json" all browsers but Firefox will accept it and pass it to my JS with no problem. Firefox, however will ask to save or open the response as a file.</p>
  
  <p>What's the correct, cross-browser Content-Type?</p>