A Tech Log

October 13, 2008

Viewing application/json mime type docs in your browser

Filed under: Development — adallow @ 10:22 am
Tags: ,

Normally firefox will pop up and ask you to view application/json as a file (like a file download). This can get annoying.

To view this in Firefox 3 Directly you can use ‘Open in Browser’ add in:

https://addons.mozilla.org/en-US/firefox/addon/8207

or the JSONovich is a Firefox extension that pretty-prints and colorizes JSON content.

http://lackoftalent.org/michael/blog/json-in-firefox/

To associate it with an external application directly you can use Firefox ‘MIME Edit’.  It word with Firefox 2. You can get it from: https://addons.mozilla.org/en-US/firefox/addon/4498

You can do the same in IE without needing a tool by updating the Windows Registry as follows:

[HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/json]
“CLSID”=”{25336920-03F9-11cf-8FD0-00AA00686F13}”
“Encoding”=hex:08,00,00,00

Further info at: http://msdn.microsoft.com/en-us/library/ms775148.aspx

About these ads

1 Comment »

  1. Thanks for the heads up! Found you straight away from Google!!

    Comment by David King — February 15, 2009 @ 9:50 am | Reply


RSS feed for comments on this post. TrackBack URI

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

The Rubric Theme. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: