<?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>&#964;&#949;&#967;&#957;&#959;&#963;&#959;&#966;&#953;&#945; &#187; JSONovich</title>
	<atom:link href="http://lackoftalent.org/michael/blog/category/projects/jsonovich/feed/" rel="self" type="application/rss+xml" />
	<link>http://lackoftalent.org/michael/blog</link>
	<description>The occasional rambling of a digital library artisan</description>
	<lastBuildDate>Sun, 13 May 2012 19:17:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>JSONovich: Now with code-folding!</title>
		<link>http://lackoftalent.org/michael/blog/2010/05/19/jsonovich-now-with-code-folding/</link>
		<comments>http://lackoftalent.org/michael/blog/2010/05/19/jsonovich-now-with-code-folding/#comments</comments>
		<pubDate>Thu, 20 May 2010 00:21:51 +0000</pubDate>
		<dc:creator>Michael Giarlo</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JSONovich]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://lackoftalent.org/michael/blog/?p=574</guid>
		<description><![CDATA[Thanks to a clean patch from Sean Coates, I&#039;m releasing v1.5 of JSONovich. It now supports code-folding. Great hack, Sean!]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="oai:lackoftalent.org:technosophia:574"><!-- &nbsp; --></abbr>
<p>Thanks to a clean patch from <a href="http://twitter.com/coates/status/14322361424">Sean Coates</a>, I&#039;m releasing v1.5 of JSONovich.  It now supports code-folding.  Great hack, Sean!</p>
]]></content:encoded>
			<wfw:commentRss>http://lackoftalent.org/michael/blog/2010/05/19/jsonovich-now-with-code-folding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JSONovich crawls into the future</title>
		<link>http://lackoftalent.org/michael/blog/2010/01/24/jsonovich-crawls-into-the-future/</link>
		<comments>http://lackoftalent.org/michael/blog/2010/01/24/jsonovich-crawls-into-the-future/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 18:28:27 +0000</pubDate>
		<dc:creator>Michael Giarlo</dc:creator>
				<category><![CDATA[JSONovich]]></category>

		<guid isPermaLink="false">http://lackoftalent.org/michael/blog/?p=561</guid>
		<description><![CDATA[For those of you who use JSONovich rather than, e.g., JSONView, I&#039;ve tweaked the plugin (now at version 1.3) to work with Firefox 3.6. I updated the version up on the Mozilla site as well, but things tend to stay in the sandbox for months at a time. (For instance, I submitted version 1.2 back [...]]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="oai:lackoftalent.org:technosophia:561"><!-- &nbsp; --></abbr>
<p>For those of you who use JSONovich rather than, e.g., <a href="https://addons.mozilla.org/en-US/firefox/addon/10869">JSONView</a>, I&#039;ve tweaked the plugin (now at version 1.3) to work with Firefox 3.6.  </p>
<p>I updated the version up on the Mozilla site as well, but things tend to stay in the sandbox for months at a time.  (For instance, I submitted version 1.2 back in November, and it&#039;s not yet available.)  Feel free to install via <a href="http://lackoftalent.org/michael/blog/json-in-firefox/">my page</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://lackoftalent.org/michael/blog/2010/01/24/jsonovich-crawls-into-the-future/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JSONovich emerges</title>
		<link>http://lackoftalent.org/michael/blog/2009/08/24/jsonovich-emerges/</link>
		<comments>http://lackoftalent.org/michael/blog/2009/08/24/jsonovich-emerges/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 18:18:50 +0000</pubDate>
		<dc:creator>Michael Giarlo</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JSONovich]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://lackoftalent.org/michael/blog/?p=492</guid>
		<description><![CDATA[JSONovich has now emerged from the Mozilla Add-ons sandbox and is available to the masses: http://addons.mozilla.org/en-US/firefox/addon/10122.]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="oai:lackoftalent.org:technosophia:492"><!-- &nbsp; --></abbr>
<p><a href="http://lackoftalent.org/michael/blog/json-in-firefox/">JSONovich</a> has now emerged from the Mozilla Add-ons <a href="http://lackoftalent.org/michael/blog/2008/12/23/jsonovich-in-the-sandbox/">sandbox</a> and is available to the masses: <a href="http://addons.mozilla.org/en-US/firefox/addon/10122">http://addons.mozilla.org/en-US/firefox/addon/10122</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://lackoftalent.org/michael/blog/2009/08/24/jsonovich-emerges/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>JSONovich update</title>
		<link>http://lackoftalent.org/michael/blog/2008/12/29/jsonovich-update/</link>
		<comments>http://lackoftalent.org/michael/blog/2008/12/29/jsonovich-update/#comments</comments>
		<pubDate>Tue, 30 Dec 2008 01:00:32 +0000</pubDate>
		<dc:creator>Michael Giarlo</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JSONovich]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://lackoftalent.org/michael/blog/?p=251</guid>
		<description><![CDATA[JSONovich is now up to version 0.6. Recent revisions have added the following functionality: Reads in JSON and converts to UTF-8 for some naive Unicode handling Wraps long lines at the right edge of the window Adds a check to see if a native JSON parsing library is already loaded (as will be the case [...]]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="oai:lackoftalent.org:technosophia:251"><!-- &nbsp; --></abbr>
<p><a href="/michael/blog/json-in-firefox">JSONovich</a> is now up to version 0.6.  Recent revisions have added the following functionality:</p>
<ul>
<li>Reads in JSON and converts to UTF-8 for some naive Unicode handling</li>
<li>Wraps long lines at the right edge of the window</li>
<li>Adds a check to see if a native JSON parsing library is already loaded (as will be the case in Firefox 3.1). Uses that library if so, otherwise loads the module included in JSONovich.</li>
<li>Handles JSON syntax errors more gracefully. Used to eat bad data and display nothing, but syntax errors (from the JSON parser) are now surfaced.</li>
</ul>
<p>I&#039;ve also tossed the source up on <a href="http://code.google.com/p/jsonovich/" target="_blank">code.google.com</a> for version control.</p>
<p>In the meantime, those of you who are using JSONovich can help increase its exposure by heading over to its entry at <a href="https://addons.mozilla.org/en-US/firefox/addon/10122" target="_blank">addons.mozilla.org</a>, logging in, downloading, rating, and reviewing the extension.  Reviews and ratings help get extensions &#034;promoted&#034; from the sandbox to the public site, which provides the ability for automatic updates when new versions of the extension are released.</p>
]]></content:encoded>
			<wfw:commentRss>http://lackoftalent.org/michael/blog/2008/12/29/jsonovich-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JSONovich in the sandbox</title>
		<link>http://lackoftalent.org/michael/blog/2008/12/23/jsonovich-in-the-sandbox/</link>
		<comments>http://lackoftalent.org/michael/blog/2008/12/23/jsonovich-in-the-sandbox/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 15:22:58 +0000</pubDate>
		<dc:creator>Michael Giarlo</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JSONovich]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://lackoftalent.org/michael/blog/?p=234</guid>
		<description><![CDATA[JSONovich is now in the &#034;sandbox&#034; over at addons.mozilla.org, where it will remain until it&#039;s been tested a bit more, and rated and reviewed by users. Until that point, it will be marked as &#034;experimental&#034; and will require users to login before they can download it. If any of you would like to give JSONovich [...]]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="oai:lackoftalent.org:technosophia:234"><!-- &nbsp; --></abbr>
<p><a href="/michael/blog/json-in-firefox">JSONovich</a> is now in the &#034;sandbox&#034; over at addons.mozilla.org, where it will remain until it&#039;s been tested a bit more, and rated and reviewed by users.  Until that point, it will be marked as &#034;experimental&#034; and will require users to login before they can download it.  If any of you would like to give JSONovich a quick spin and rate/review it over at the Mozilla add-ons site, that would be solid.  Once it&#039;s gotten a few reviews and I&#039;m more comfortable about it working cross-platform and cross-version, I&#039;ll nominate it to be promoted.</p>
<p>Here&#039;s where it lives: <a href="http://addons.mozilla.org/en-US/firefox/addon/10122" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/10122</a></p>
<p>Much obliged, folks.  And thanks to those of you who have already downloaded it, installed it, tested it, left comments, or some combination thereof.</p>
]]></content:encoded>
			<wfw:commentRss>http://lackoftalent.org/michael/blog/2008/12/23/jsonovich-in-the-sandbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introducing JSONovich</title>
		<link>http://lackoftalent.org/michael/blog/2008/12/12/introducing-jsonovich/</link>
		<comments>http://lackoftalent.org/michael/blog/2008/12/12/introducing-jsonovich/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 20:33:21 +0000</pubDate>
		<dc:creator>Michael Giarlo</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JSONovich]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://lackoftalent.org/michael/blog/?p=208</guid>
		<description><![CDATA[JSONovich is a Firefox extension that pretty-prints and colorizes JSON. Feedback is welcome.]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="oai:lackoftalent.org:technosophia:208"><!-- &nbsp; --></abbr>
<p><a href="http://lackoftalent.org/michael/blog/json-in-firefox/">JSONovich</a> is a Firefox extension that pretty-prints and colorizes JSON.</p>
<p>Feedback is welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://lackoftalent.org/michael/blog/2008/12/12/introducing-jsonovich/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JSON and the Blarghonauts, or, Firefox and Pretty-Printing FAIL</title>
		<link>http://lackoftalent.org/michael/blog/2008/12/02/json-and-the-blarghonauts-or-firefox-and-pretty-printing-fail/</link>
		<comments>http://lackoftalent.org/michael/blog/2008/12/02/json-and-the-blarghonauts-or-firefox-and-pretty-printing-fail/#comments</comments>
		<pubDate>Tue, 02 Dec 2008 21:25:41 +0000</pubDate>
		<dc:creator>Michael Giarlo</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JSONovich]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://lackoftalent.org/michael/blog/?p=196</guid>
		<description><![CDATA[There must be a better way of viewing pretty-printed JSON from Firefox than this. (EDIT: Hail, JSONovich!) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 #!/usr/bin/env python # ~/bin/jsonhandler.py # [...]]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="oai:lackoftalent.org:technosophia:196"><!-- &nbsp; --></abbr>
<p>There must be a better way of viewing pretty-printed JSON from Firefox than this.  (EDIT: Hail, <a href="http://lackoftalent.org/michael/blog/json-in-firefox/">JSONovich</a>!)</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
</pre></td><td class="code"><pre class="python" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">#!/usr/bin/env python</span>
<span style="color: #808080; font-style: italic;"># ~/bin/jsonhandler.py </span>
<span style="color: #808080; font-style: italic;"># Take some JSON from a file or stdin, format it, output to a tempfile, </span>
<span style="color: #808080; font-style: italic;"># open in EDITOR</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">from</span> <span style="color: #dc143c;">__future__</span> <span style="color: #ff7700;font-weight:bold;">import</span> with_statement
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">os</span>
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">sys</span>
<span style="color: #ff7700;font-weight:bold;">import</span> simplejson
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">tempfile</span>
&nbsp;
EDITOR = <span style="color: #483d8b;">&quot;/usr/bin/gedit&quot;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">if</span> __name__ == <span style="color: #483d8b;">&quot;__main__&quot;</span>:
    <span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: #008000;">len</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">sys</span>.<span style="color: black;">argv</span><span style="color: black;">&#41;</span> == <span style="color: #ff4500;">2</span>:
        <span style="color: #808080; font-style: italic;"># if invoked as jsonhandler.py {FILE}</span>
        json = <span style="color: #008000;">open</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">sys</span>.<span style="color: black;">argv</span><span style="color: black;">&#91;</span><span style="color: #ff4500;">1</span><span style="color: black;">&#93;</span><span style="color: black;">&#41;</span>
    <span style="color: #ff7700;font-weight:bold;">else</span>:
        <span style="color: #808080; font-style: italic;"># if JSON is piped in (e.g., from Firefox, </span>
        <span style="color: #808080; font-style: italic;"># or cat {FILE} | jsonhandler.py)</span>
        json = <span style="color: #dc143c;">sys</span>.<span style="color: black;">stdin</span>
    json = simplejson.<span style="color: black;">load</span><span style="color: black;">&#40;</span>json<span style="color: black;">&#41;</span>
    <span style="color: #808080; font-style: italic;"># the with_statement is kind of gratuitous but I like it</span>
    <span style="color: #ff7700;font-weight:bold;">with</span> <span style="color: #008000;">open</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">tempfile</span>.<span style="color: black;">mktemp</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'.json'</span><span style="color: black;">&#41;</span>, <span style="color: #483d8b;">'w'</span><span style="color: black;">&#41;</span> <span style="color: #ff7700;font-weight:bold;">as</span> jsonfile:
        simplejson.<span style="color: black;">dump</span><span style="color: black;">&#40;</span>json, jsonfile, indent=<span style="color: #ff4500;">4</span><span style="color: black;">&#41;</span>
    <span style="color: #808080; font-style: italic;"># all of that and gedit doesn't even highlight JSON</span>
    <span style="color: #808080; font-style: italic;"># I have emacs highlighting JSON but this generates a &quot;stdin is not </span>
    <span style="color: #808080; font-style: italic;"># a tty&quot; error, so EDITOR is not set to emacs</span>
    <span style="color: #808080; font-style: italic;"># xemacs works a little better, but I need to click:</span>
    <span style="color: #808080; font-style: italic;"># &quot;Options &gt; Syntax Highlighting &gt; In this buffer&quot; every time, despite </span>
    <span style="color: #808080; font-style: italic;"># saving to custom.el, so EDITOR is not set to xemacs</span>
    <span style="color: #808080; font-style: italic;"># Very annoying!</span>
    <span style="color: #dc143c;">os</span>.<span style="color: black;">system</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;%s %s&quot;</span> <span style="color: #66cc66;">%</span> <span style="color: black;">&#40;</span>EDITOR, jsonfile.<span style="color: black;">name</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span></pre></td></tr></table></div>

<p>And then I set ~/bin/jsonhandler.py as the action for application/json in Edit | Preferences | Applications.</p>
<p>Yuck.  Help?</p>
]]></content:encoded>
			<wfw:commentRss>http://lackoftalent.org/michael/blog/2008/12/02/json-and-the-blarghonauts-or-firefox-and-pretty-printing-fail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

