Please serve JSON with the application/json content-type, not text/html.
If you want to debug it more easily in a browser, you can install the JSONView Firefox extension. It's quite handy: https://addons.mozilla.org/en-US/firefox/addon/10869
If you want to debug it more easily in a browser, you can install the JSONView Firefox extension. It's quite handy: https://addons.mozilla.org/en-US/firefox/addon/10869
This was still present in IE7, but they may have fixed it in IE8.
Sending application/json to older versions of IE can cause it to pop up Save As dialogs, even in AJAX requests.
They did the same thing with application/xml+xhtml.