When we have a JSON builder, say a MVC Controller with method returns JSON, and we want to debug this method using Internet Explorer, IE will prompt for download the JSON file hence we can’t see the result immediately. Really annoying behavior.
However we can alter this by update Windows Registry. Below are the steps on how to do so:
We need to be login as user with administrator privilege
Open any text editor (Notepad will do) and create a file called js_ie.reg or any name with .reg extension and put below as content
Windows Registry Editor Version 5.00
; Tell IE to open JSON documents in the browser.
; 25336920-03F9-11cf-8FD0-00AA00686F13 is the CLSID for the "Browse in place" .
- Double click .reg file, it will prompt us for confirmation to change registry, choose OK
- Now, you our IE will immediately shows JSON results on screen rather than prompt us to download