http://skysanders.net/subtext/archive/2010/03/23/coerce-windows-and-internet-explorer-ie-to-diplay-json-text.aspx
Coerce Windows and Internet Explorer (IE) to diplay JSON text inline
Cheeso posted and eventually answered this question on StackOverflow about how to get IE to stop popping a file download dialog when rendering JSON text.
A few things I noticed about the answer that might help others follow:
- You need to add the registry editor version as the first line in the .reg file
- You might want to also include 'text/json' content type.
01
Windows Registry Editor Version 5.00
02
03
[HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/json]
04
"CLSID"="{25336920-03F9-11cf-8FD0-00AA00686F13}"
05
"Encoding"=dword:00080000
06
07
08
[HKEY_CLASSES_ROOT\MIME\Database\Content Type\text/json]
09
"CLSID"="{25336920-03F9-11cf-8FD0-00AA00686F13}"
10
"encoding"=dword:00080000