Firefox – View Source
February 3rd, 2009 by Brian | Filed under work.Everyone knows about “View – Page Source” in Firefox & it’s counterparts in other browsers , but have you ever hit a web page that returns JSON or XML or some other text and have Firefox prompt you to choose an application to open it ? So annoying! Why can’t Firefox just display it?!??!
I stumbled across a great workaround while clicking around the Project Zero forums: view-source:
It’s used like this:
That’s it … just prepend view-source: to any URL and it will display the source… so handy for those pesky JSON URLs!
Credit to dieselchrist for his post on the Project Zero forum
Note: brandon suggesting using the Firefox Poster plugin … definitely worth a look as well.
Tags: firefox, json, projectzero, source

Another helpful plugin for this kind of problem is JSONovich (http://lackoftalent.org/michael/blog/json-in-firefox/). It does pretty-printing of JSON when returned with the application/json MIME type.