<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blog &#124; BenHollis.net &#187; open source</title>
	<atom:link href="http://benhollis.net/blog/tags/open-source/feed/" rel="self" type="application/rss+xml" />
	<link>http://benhollis.net/blog</link>
	<description>News about BenHollis.net and articles about Ben&#039;s interests</description>
	<lastBuildDate>Fri, 04 Jun 2010 05:39:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>JSONView 0.4 with content negotiation</title>
		<link>http://benhollis.net/blog/2009/10/12/jsonview-0-4-with-content-negotiation/</link>
		<comments>http://benhollis.net/blog/2009/10/12/jsonview-0-4-with-content-negotiation/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 06:44:02 +0000</pubDate>
		<dc:creator>Ben Hollis</dc:creator>
				<category><![CDATA[JSONView]]></category>
		<category><![CDATA[content negotiation]]></category>
		<category><![CDATA[CouchDB]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://brh.numbera.com/blog/?p=378</guid>
		<description><![CDATA[JSONView 0.4 was just approved on addons.mozilla.org. This one is mostly a bugfix release from 0.3, but I couldn&#8217;t let it go out without one new feature, so I finally added support for content negotation. This means that you can go to the new JSONView options dialog (in the Addons menu) and enable sending the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://jsonview.com">JSONView 0.4</a> was just approved <a href="https://addons.mozilla.org/en-US/firefox/addon/10869">on addons.mozilla.org</a>. This one is mostly a bugfix release from 0.3, but I couldn&#8217;t let it go out without one new feature, so I finally added support for <a href="http://en.wikipedia.org/wiki/Content_negotiation">content negotation</a>. This means that you can go to the new JSONView options dialog (in the Addons menu) and enable sending the &#8220;application/json&#8221; content type with your HTTP Accept header. Some applications (like some Ruby on Rails websites) are set up to return JSON if you ask for it via the HTTP Accept header, and XML or HTML otherwise. This means thay you can now specify a preference for JSON, which should help when you&#8217;re in that situation. I specifically made sure it works with <a href="http://couchdb.apache.org/">CouchDB</a>, which is an exiting document-based database with a JSON API. Before this option, CouchDB would return plain text to browsers, but now you can make it send JSON that&#8217;ll be nicely formatted by JSONView. Note that the option to modify the HTTP Accept header isn&#8217;t on by default because many people won&#8217;t need it, and it has the potential to screw up some websites that don&#8217;t expect browsers to ask for JSON. That said, I&#8217;m sure this will be helpful in a bunch of situations.</p>
<p class="blogimage"><a href="http://jsonview.com"><img src="http://brh.numbera.com/blog/wp-content/uploads/2009/10/JSONView-Options.png" alt="JSONView Options" title="JSONView Options" width="450" height="155" class="alignnone size-full wp-image-387" /></a></p>
<p>On the bugfix side, I fixed the issue I mentioned in my <a href="http://brh.numbera.com/blog/2009/10/05/updates-to-jsonview-xblist-and-topprocess/">post about JSONView 0.3</a> where values that were 0 or false wouldn&#8217;t show up at all as a result of some overzealous error-checking. I also hunted down an infuriating bug where JSON documents would sometimes report as invalid when Firebug was on. This took a while to track down, but apparently Firebug slows down the loading of the document enough to mess with how I was reading a stream (and I had to be careful not to re-trigger an earlier bug that could cause Firefox on OSX to crash.) Anyway, it&#8217;s fixed now, and everybody should see more reliable document rendering, Firebug or not. For those living on the edge, JSONView is also marked as compatible up to Firefox 3.7a1pre, so you should have no trouble installing it on Minefield or the upcoming Firefox 3.6 alpha.</p>
<p>One thing that might stand out is that the new options dialog might not be localized for your language. JSONView&#8217;s localizations are handled by the generous volunteers at <a href="http://babelzilla.org">Babelzilla</a>, which is great for me, but not as great when I want to rush out a release with important bugfixes. In this case I chose to ship 0.4 before all the new localizations had arrived, but I&#8217;ll add them all in again for the next release once the translators have caught up.</p>
<p>So <a href="https://addons.mozilla.org/en-US/firefox/addon/10869">grab JSONView 0.4</a> from addons.mozilla.org, or just update your extensions if you&#8217;ve already got it installed. As usual, feel free to send me feedback as comments on this post, and file bugs and feature requests <a href="http://code.google.com/p/jsonview/issues/list">at Google Code</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://benhollis.net/blog/2009/10/12/jsonview-0-4-with-content-negotiation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>JSONView 0.2 adds support for opening local .json files</title>
		<link>http://benhollis.net/blog/2009/05/12/jsonview-02-adds-support-for-opening-local-json-files/</link>
		<comments>http://benhollis.net/blog/2009/05/12/jsonview-02-adds-support-for-opening-local-json-files/#comments</comments>
		<pubDate>Tue, 12 May 2009 20:31:24 +0000</pubDate>
		<dc:creator>Ben Hollis</dc:creator>
				<category><![CDATA[JSONView]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://brh.numbera.com/blog/?p=353</guid>
		<description><![CDATA[Just a quick update on JSONView &#8211; I&#8217;ve submitted version 0.2 to addons.mozilla.org. This new version doesn&#8217;t have a lot of changes, but it adds some new translations (Hungarian, Bulgarian, German, and some Turkish), and you can now open &#8220;.json&#8221; files saved on your computer, enabling offline JSON viewing. This new version is also compatible [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick update on <a href="http://jsonview.com/">JSONView</a> &#8211; I&#8217;ve submitted version 0.2 to addons.mozilla.org. This new version doesn&#8217;t have a lot of changes, but it adds some new translations (Hungarian, Bulgarian, German, and some Turkish), and you can now open &#8220;.json&#8221; files saved on your computer, enabling offline JSON viewing. This new version is also compatible with the latest Firefox 3.5 betas.</p>
<p>Of course, the extension must be reviewed before this new version can be released from the sandbox, but if you want to try it out you can <a href="https://addons.mozilla.org/en-US/firefox/addons/versions/10869#version-0.2">download version 0.2 from the sandbox</a>. Hopefully it&#8217;ll be approved soon and will show up on the main extension listing. Please give it a look and <a href="https://addons.mozilla.org/en-US/firefox/addon/10869/">rate and review</a> the extension on addons.mozilla.org.</p>
<p>I&#8217;ll be out of the US on vacation until next month, but after that I intend to do some more work on the <a href="http://code.google.com/p/jsonview/issues/list">feature backlog for JSONView</a>, as well some updates to other projects. Remember you can vote on features or file new ones at the <a href="http://code.google.com/p/jsonview/issues/list">Google Code issue tracker for JSONView</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://benhollis.net/blog/2009/05/12/jsonview-02-adds-support-for-opening-local-json-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JSONView Updated to 0.1b3</title>
		<link>http://benhollis.net/blog/2009/03/15/jsonview-updated-to-01b3/</link>
		<comments>http://benhollis.net/blog/2009/03/15/jsonview-updated-to-01b3/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 01:45:14 +0000</pubDate>
		<dc:creator>Ben Hollis</dc:creator>
				<category><![CDATA[JSONView]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://brh.numbera.com/blog/?p=324</guid>
		<description><![CDATA[Today I uploaded a new version of JSONView to addons.mozilla.org. I&#8217;m sticking with the wimpy version number for now, but I think JSONView has been proving itself out in the wild. One major bug was uncovered that caused JSON documents larger than 8KB to render incorrectly, and that&#8217;s fixed in this new version. I&#8217;ve also [...]]]></description>
			<content:encoded><![CDATA[<p>Today I uploaded a new version of <a href="http://jsonview.com">JSONView</a> to <a href="https://addons.mozilla.org/en-US/developers/addon/status/10869/">addons.mozilla.org</a>. I&#8217;m sticking with the wimpy version number for now, but I think JSONView has been proving itself out in the wild. One major bug was uncovered that caused JSON documents larger than 8KB to render incorrectly, and that&#8217;s fixed in this new version. I&#8217;ve also added three new translations of the extension (French, Dutch, and Czech) courtesy of the folks at <a href="http://babelzilla.org">BabelZilla.org</a> &#8211; if you want to help out you can <a href="http://www.babelzilla.org/index.php?option=com_wts&#038;Itemid=88&#038;extension=4860&#038;type=lang">check out the available translations</a> and add yours. Lastly, the extension is now compatible with Firefox 3.1b3. I&#8217;ve been trying to keep things tested on the beta browsers within a day or two of their release. If you have an older version of the extension you&#8217;ll need to <a href="https://addons.mozilla.org/en-US/developers/addon/status/10869/">go back to AMO</a> and install it again &#8211; automatic updates won&#8217;t work until JSONView is out of the <a href="https://addons.mozilla.org/en-US/firefox/pages/sandbox">sandbox</a>.</p>
<p>JSONView has gotten a bit of coverage on the blogs, too, which I&#8217;ve enjoyed. It made it onto the front page of Delicious and reddit programming, and Ars Technica wrote <a href="http://arstechnica.com/open-source/news/2009/03/web-developer-tips-json-tools-for-your-web-browser.ars">an article in their journals</a>. Also, I was <a href="http://opensourcereleasefeed.com/interview/show/five-questions-with-benjamin-hollis-on-json-and-firefox-jsonview">interviewed on OpenSource Release Feed</a>, which was fun. I&#8217;m glad that people are getting to use the extension and find it helpful. Hopefully when it gets released from the sandbox it&#8217;ll get even broader exposure.</p>
]]></content:encoded>
			<wfw:commentRss>http://benhollis.net/blog/2009/03/15/jsonview-updated-to-01b3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>JSONView &#8211; View JSON documents in Firefox</title>
		<link>http://benhollis.net/blog/2009/02/24/jsonview-view-json-documents-in-firefox/</link>
		<comments>http://benhollis.net/blog/2009/02/24/jsonview-view-json-documents-in-firefox/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 06:42:35 +0000</pubDate>
		<dc:creator>Ben Hollis</dc:creator>
				<category><![CDATA[JSONView]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://brh.numbera.com/blog/?p=309</guid>
		<description><![CDATA[digg_url = 'http://digg.com/programming/JSONView_View_JSON_documents_in_Firefox'; I&#8217;m a big fan of JSON as a data exchange format. It&#8217;s simple, lightweight, easy to produce and easy to consume. However, JSON hasn&#8217;t quite caught up to XML in terms of tool support. For example, if you try to visit a URL that produces JSON (using the official &#8220;application/json&#8221; MIME type), [...]]]></description>
			<content:encoded><![CDATA[<div class="diggButton"><script type="text/javascript">
digg_url = 'http://digg.com/programming/JSONView_View_JSON_documents_in_Firefox';
</script><script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script> </div>
<p>I&#8217;m a big fan of <a href="http://json.org/">JSON</a> as a data exchange format. It&#8217;s simple, lightweight, easy to produce and easy to consume. However, JSON hasn&#8217;t quite caught up to XML in terms of tool support. For example, if you try to visit a URL that produces JSON (using the official &#8220;application/json&#8221; MIME type), Firefox will prompt you to download the file. If you try the same thing with an XML document, it&#8217;ll display a nice formatted result with collapsible sections. I&#8217;ve always wanted a Firefox extension that would give JSON the same treatment that comes built-in for XML, and after searching for it for a while I just gave up and wrote my own. The <a href="http://brh.numbera.com/software/jsonview/">JSONView</a> extension (<a href="https://addons.mozilla.org/en-US/firefox/addon/10869/">install</a>) will parse a JSON document and display something <a href="http://brh.numbera.com/software/images/screenshot/jsonviewscreen.png">prettier, with syntax highlighting, collapsible arrays and objects, and nice readable formatting</a>. In the case that your JSON isn&#8217;t really JSON (JSONView is pretty strict) it&#8217;ll display an error but still show you the text of your document. If you want to see the original text at any time, it&#8217;s still available in &#8220;View Source&#8221; too.</p>
<p class="blogimage"><a href="http://brh.numbera.com/software/jsonview/"><img src="http://brh.numbera.com/software/images/jsonview.png" alt="JSONView logo" width="250" height="275" /></a></p>
<p>I&#8217;ve been eager to release this for some time, but I finally pushed it to <a href="https://addons.mozilla.org/en-US/firefox/addon/10869/">addons.mozilla.org</a> last night. I actually started development on it about 7 months ago, but work got paused on it for about 6 months due to stuff out of my control, and then I had some <a href="http://flickr.com/photos/genkigecko/sets/72157612706914935/">other projects</a> I was working on. The actual development only took a few days (including digging through some confusing Unicode bugs).  I thought it was funny that right as I was resuming work on JSONView I noticed that a <a href="http://www.softwareishard.com/blog/firebug/json-explorer-for-firebug/">JSON explorer had actually landed for Firebug 1.4</a>, which I&#8217;ll also be looking forward to. Initially I had intended to build that functionality as part of my extension. There&#8217;s a lot I&#8217;d like to add on, like <a href="http://code.google.com/p/jsonview/issues/detail?id=3">JSONP support</a> and <a href="http://code.google.com/p/jsonview/issues/detail?id=4">a preference to send the &#8220;application/json&#8221; MIME type in Firefox&#8217;s accept headers</a>.</p>
<p>This is actually my first real open source project &#8211; I&#8217;ve released some code under open source licenses before, but this is actually set up at <a href="http://code.google.com/p/jsonview/">Google Code</a> with an issue tracker and public source control and everything. I&#8217;ve licensed it under the MIT license. I&#8217;m really hoping people get interested in improving the extension with me. I&#8217;ve pre-seeded the <a href="http://code.google.com/p/jsonview/issues">issue tracker</a> with some known bugs and feature requests.</p>
<p>The extension itself is pretty simple. I wasn&#8217;t sure how to approach the problem of supporting a new content type for Firefox, so I followed the example of the <a href="http://wmlbrowser.mozdev.org/">wmlbrowser</a> extension and implemented a custom <a href="http://www.xulplanet.com/references/xpcomref/ifaces/nsIStreamConverter.html">nsIStreamConverter</a>. What this means is that I created a new component that tells Firefox &#8220;I know how to translate documents of type application/json into HTML&#8221;. And that it does &#8211; parsing the JSON using the new <a href="https://developer.mozilla.org/en/JSON">native JSON support</a> in Firefox 3 (for speed and security) and then constructing an HTML document that it passes along the chain. This seems to work pretty well, though there are some problems &#8211; some parts of Firefox forget the original type of the document and treat it as HTML, so &#8220;View Page Info&#8221; reports &#8220;text/html&#8221; instead of &#8220;application/json&#8221;, &#8220;Save as&#8230;&#8221; saves the generated HTML, Firebug sees the generated HTML, etc. Just recently I came across the <a href="http://www.xulplanet.com/references/xpcomref/ifaces/nsIURIContentListener.html">nsIURLContentListener</a> interface, which might offer a better way of implementing JSONView, but I&#8217;m honestly not sure &#8211; the Mozilla documentation is pretty sparse and it was hard enough to get as far as I did. I&#8217;m hoping some Mozilla gurus can give me some pointers now that it&#8217;s out in the open.</p>
<p>Right now the extension is versioned at &#8220;0.1b1&#8243; which is a wimpy way of saying &#8220;this is a first release and it could use some work&#8221;. It&#8217;s also trapped in the &#8220;sandbox&#8221; at <a href="https://addons.mozilla.org/en-US/firefox/addon/10869/">addons.mozilla.org</a>, where it will stay until it gets some downloads and reviews. Please check it out, write a little review, and soon people won&#8217;t have to log in to install it!</p>
<p>Note: While composing this post I ran across the <a href="http://lackoftalent.org/michael/blog/json-in-firefox/">JSONovich</a> extension which was apparently released in mid-December and seems to do similar stuff to JSONView. No reason we can&#8217;t have two competing extensions, though.</p>
]]></content:encoded>
			<wfw:commentRss>http://benhollis.net/blog/2009/02/24/jsonview-view-json-documents-in-firefox/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
