Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / web

View JSON in Internet Explorer

4.90/5 (23 votes)
21 May 2014CPOL 160.6K  
A simple Registry change will enable IE to display JSON responses.

Need to view JSON responses in IE?

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
  1. Open Notepad and paste the following:
  2. Save document as IE-Json.reg and then run it.

Note: This has been tested on Windows XP, Windows 7, and Windows 8.1 using IE 7, 8, 9, 10, 11.

Edit: Thank you to peterennis for testing in IE 10.

Edit: Thank you to all testing in the various environments.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)