<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: JSON feeds</title>
	<atom:link href="http://www.codedread.com/blog/archives/2006/01/31/json-feeds/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codedread.com/blog/archives/2006/01/31/json-feeds/</link>
	<description></description>
	<lastBuildDate>Wed, 17 Mar 2010 03:27:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: shr3kst3r</title>
		<link>http://www.codedread.com/blog/archives/2006/01/31/json-feeds/comment-page-1/#comment-367</link>
		<dc:creator>shr3kst3r</dc:creator>
		<pubDate>Tue, 09 May 2006 00:10:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codedread.com/?p=219#comment-367</guid>
		<description>I wrote up a quick article on converting RSS feeds to JSON using PHP.  You might find it interesting.  It is quick and dirty, but it might be useful for a mash-up.

http://www.engrowe.com/?p=67</description>
		<content:encoded><![CDATA[<p>I wrote up a quick article on converting RSS feeds to JSON using PHP.  You might find it interesting.  It is quick and dirty, but it might be useful for a mash-up.</p>
<p><a href="http://www.engrowe.com/?p=67" rel="nofollow">http://www.engrowe.com/?p=67</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geir Aalberg</title>
		<link>http://www.codedread.com/blog/archives/2006/01/31/json-feeds/comment-page-1/#comment-366</link>
		<dc:creator>Geir Aalberg</dc:creator>
		<pubDate>Thu, 09 Mar 2006 16:40:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codedread.com/?p=219#comment-366</guid>
		<description>&gt; it would be great if someone wrote some generic code that would convert an arbitrary
&gt; XML document/node into the equivalent JSON fragment

&quot;Arbitraty&quot; is a pretty dauntint task (given that XML is a pretty complex data structure, especially using namespaces), but XSLT should be as good a tool as any. Plus, you can even do that directly in the browser.</description>
		<content:encoded><![CDATA[<p>&#62; it would be great if someone wrote some generic code that would convert an arbitrary<br />
&#62; XML document/node into the equivalent JSON fragment</p>
<p>&#8220;Arbitraty&#8221; is a pretty dauntint task (given that XML is a pretty complex data structure, especially using namespaces), but XSLT should be as good a tool as any. Plus, you can even do that directly in the browser.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Schiller</title>
		<link>http://www.codedread.com/blog/archives/2006/01/31/json-feeds/comment-page-1/#comment-365</link>
		<dc:creator>Jeff Schiller</dc:creator>
		<pubDate>Tue, 31 Jan 2006 22:53:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codedread.com/?p=219#comment-365</guid>
		<description>Thanks, Johan - I didn&#039;t pick up your second post about this until now.  Good stuff.  Btw, I wasn&#039;t even considering a centralized XML-to-JSONP proxy, more of a here-is-some-code-free-to-use-and-copy type thing.  Parsing XML is not hard in any language (just tedious) but getting the conversion proper might prove to be a little challenging ... and I&#039;m lazy ;)</description>
		<content:encoded><![CDATA[<p>Thanks, Johan &#8211; I didn&#8217;t pick up your second post about this until now.  Good stuff.  Btw, I wasn&#8217;t even considering a centralized XML-to-JSONP proxy, more of a here-is-some-code-free-to-use-and-copy type thing.  Parsing XML is not hard in any language (just tedious) but getting the conversion proper might prove to be a little challenging &#8230; and I&#8217;m lazy <img src='http://www.codedread.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan Sundström</title>
		<link>http://www.codedread.com/blog/archives/2006/01/31/json-feeds/comment-page-1/#comment-364</link>
		<dc:creator>Johan Sundström</dc:creator>
		<pubDate>Tue, 31 Jan 2006 22:33:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codedread.com/?p=219#comment-364</guid>
		<description>You probably noticed my &lt;a href=&quot;http://ecmanaut.blogspot.com/2006/01/jsonp-why-how.html&quot; rel=&quot;nofollow&quot;&gt;in-depth reply article&lt;/a&gt; about these things, but here is a more direct digest I wrote up first prior to making it an entire article:

1: Naming issues are the same for JSON as for any XML dialect; the day your favourite data providers breaks backwards compatibility with the RSS format they previously committed to, your application breaks. It can be argued that widely adopted schemas such as RSS and Atom are safer bets, but IMO it&#039;s a moot point. As soon as you use somebody else&#039;s data, you are at their mercy of still making it available to you in what format they picked.

2 &amp; 3: Overcoming the same origin policy browser security model being the main point an strength of JSONP (vs XML), yes, you point your script tag at the enemy and are at their mercy of not giving you any other side effects you did not bargain for. If you don&#039;t trust your feed not to send code with side effects, use either need elevated privileges so you can fetch content via XMLHttpRequest, to use a JSON parser rather than eval. The JSON site has one in javascript, but I&#039;d opt to use some server side script to process and cleanse the feed first if I was in this situation. In which case your choice of picking up just any feed at all and reformatting it as JSONP would be the solution most close at hand.

4: A generic XML-to-JSONP proxy is a good idea in theory. Chances are it might be as useful to white as to black hat hackers, though I haven&#039;t given it much thought. The &quot;open proxy&quot; idea might not be much of a problem as it&#039;s just about reading data, though it might swamp the script and site with traffic. :-)

The way I see it, making JSONP feeds for external consumption is really just interesting when you invite the wide public to innovate around your data. If you don&#039;t, why bother much about it at all?</description>
		<content:encoded><![CDATA[<p>You probably noticed my <a href="http://ecmanaut.blogspot.com/2006/01/jsonp-why-how.html" rel="nofollow">in-depth reply article</a> about these things, but here is a more direct digest I wrote up first prior to making it an entire article:</p>
<p>1: Naming issues are the same for JSON as for any XML dialect; the day your favourite data providers breaks backwards compatibility with the RSS format they previously committed to, your application breaks. It can be argued that widely adopted schemas such as RSS and Atom are safer bets, but IMO it&#8217;s a moot point. As soon as you use somebody else&#8217;s data, you are at their mercy of still making it available to you in what format they picked.</p>
<p>2 &#38; 3: Overcoming the same origin policy browser security model being the main point an strength of JSONP (vs XML), yes, you point your script tag at the enemy and are at their mercy of not giving you any other side effects you did not bargain for. If you don&#8217;t trust your feed not to send code with side effects, use either need elevated privileges so you can fetch content via XMLHttpRequest, to use a JSON parser rather than eval. The JSON site has one in javascript, but I&#8217;d opt to use some server side script to process and cleanse the feed first if I was in this situation. In which case your choice of picking up just any feed at all and reformatting it as JSONP would be the solution most close at hand.</p>
<p>4: A generic XML-to-JSONP proxy is a good idea in theory. Chances are it might be as useful to white as to black hat hackers, though I haven&#8217;t given it much thought. The &#8220;open proxy&#8221; idea might not be much of a problem as it&#8217;s just about reading data, though it might swamp the script and site with traffic. <img src='http://www.codedread.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>The way I see it, making JSONP feeds for external consumption is really just interesting when you invite the wide public to innovate around your data. If you don&#8217;t, why bother much about it at all?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://www.codedread.com/blog/archives/2006/01/31/json-feeds/comment-page-1/#comment-363</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Tue, 31 Jan 2006 15:49:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codedread.com/?p=219#comment-363</guid>
		<description>I read Douglas Crockford&#039;s thing on JSON a while back and I didn&#039;t think too much of it. It&#039;s a handy notation when everyone&#039;s transforming their XML into JS objects anyways, but I don&#039;t think it belongs at that layer. It&#039;s too much like arbitrarily executing anything you&#039;re handed.</description>
		<content:encoded><![CDATA[<p>I read Douglas Crockford&#8217;s thing on JSON a while back and I didn&#8217;t think too much of it. It&#8217;s a handy notation when everyone&#8217;s transforming their XML into JS objects anyways, but I don&#8217;t think it belongs at that layer. It&#8217;s too much like arbitrarily executing anything you&#8217;re handed.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
