Viewing JSON in Internet Explorer

(Originally Posted on November 21, 2013)

Recently I have been working on some Web API controllers and found it bothersome to use Internet Explorer to view raw JSON results.  Instead of just seeing the JSON text you get a popup from IE asking how you would like to open up the JSON file.

The “fix” for this is to save the lines below in a text file with the extension “.reg” to modify the registry.

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

This is telling IE that for the “application/json” MIME type that it can be viewed “in place” or just directly in the browser. There are a few resources I found with differing information but I found this specific registry fix on Code Project.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s