[Origin]: http://developers.de/blogs/holger_vetter/archive/2013/12/13/view-json-in-internet-explorer-7-11.aspx
Hello guys,
you all know the problem, want to debug an application with IE and IE always wants to download the JSON file.
The other browsers like Chrome or Firefox are doing a better job here.
If you want that IE shows the JSON file without downloading it, here is a registry fix for it.
Create a new text document and insert this (Link: http://pastebin.com/B0BXG0N6):
Windows Registry Editor Version 5.00; ; Tell IE 7,8,9,10,11 to open JSON documents in the browser on Windows XP and later. ; 25336920-03F9-11cf-8FD0-00AA00686F13 is the CLSID for the "Browse in place" . ; [HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/json] "CLSID"="{25336920-03F9-11cf-8FD0-00AA00686F13}" "Encoding"=hex:08,00,00,00 [HKEY_CLASSES_ROOT\MIME\Database\Content Type\text/json] "CLSID"="{25336920-03F9-11cf-8FD0-00AA00686F13}" "Encoding"=hex:08,00,00,00
Now rename the document to {FileName}.reg and save.
Run it and confirm the dialog.
Now JSON files will be shown directly in IE, without downloading.
*Thanks to Coding 101 from http://www.codeproject.com/Tips/216175/View-JSON-in-Internet-Explorer for the Script
Oops, you’re right that was a copy paste error. However I trigger the compatibility mode via the Settings Icon -> Compatibility View Settings -> Add the site in there.
From there on he doesn’t show the div whereas without the comp mode it works without any problems.
is set.