View JSON in Internet Explorer 7-11

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):

   1: Windows Registry Editor Version 5.00;
   2: ; Tell IE 7,8,9,10 to open JSON documents in the browser on Windows XP and later.
   3: ; 25336920-03F9-11cf-8FD0-00AA00686F13 is the CLSID for the "Browse in place" .
   4: ;
   5: [HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/json]
   6: "CLSID"="{25336920-03F9-11cf-8FD0-00AA00686F13}"
   7: "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


Posted Dec 13 2013, 10:00 AM by Holger Vetter
Filed under:

Comments

View JSON in Internet Explorer 7-11 | Sai wrote View JSON in Internet Explorer 7-11 | Sai
on 06-29-2017 23:36

Pingback from  View JSON in Internet Explorer 7-11 | Sai

developers.de is a .Net Community Blog powered by daenet GmbH.