<?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: csv2json: Convert CSV to JSON</title>
	<atom:link href="http://tamlyn.org/2009/06/csv2json-convert-csv-to-json/feed/" rel="self" type="application/rss+xml" />
	<link>http://tamlyn.org/2009/06/csv2json-convert-csv-to-json/</link>
	<description></description>
	<lastBuildDate>Sat, 03 Jul 2010 21:06:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Tamlyn</title>
		<link>http://tamlyn.org/2009/06/csv2json-convert-csv-to-json/comment-page-1/#comment-705</link>
		<dc:creator>Tamlyn</dc:creator>
		<pubDate>Tue, 18 May 2010 14:19:33 +0000</pubDate>
		<guid isPermaLink="false">http://tamlyn.org/?p=242#comment-705</guid>
		<description>@David I&#039;m afraid converting JSON to CSV is not really possible because JSON is a much more expressive data format than CSV. This means only a very small proportion of JSON files could meaningfully be translated into CSV.</description>
		<content:encoded><![CDATA[<p>@David I&#8217;m afraid converting JSON to CSV is not really possible because JSON is a much more expressive data format than CSV. This means only a very small proportion of JSON files could meaningfully be translated into CSV.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DAVID COLBERT</title>
		<link>http://tamlyn.org/2009/06/csv2json-convert-csv-to-json/comment-page-1/#comment-695</link>
		<dc:creator>DAVID COLBERT</dc:creator>
		<pubDate>Thu, 04 Feb 2010 22:23:01 +0000</pubDate>
		<guid isPermaLink="false">http://tamlyn.org/?p=242#comment-695</guid>
		<description>I would like to convert a .json fle to a .csv file, and in googling for something I found your http://tamlyn.org/2009/06/csv2json-convert-csv-to-json/ about converting .csv to .json.

Do you have a way of converting a  .json fle to a .csv file?  Certainly would &#039;preciate it!  

David - New Jersey, U.S.A.</description>
		<content:encoded><![CDATA[<p>I would like to convert a .json fle to a .csv file, and in googling for something I found your <a href="http://tamlyn.org/2009/06/csv2json-convert-csv-to-json/" rel="nofollow">http://tamlyn.org/2009/06/csv2json-convert-csv-to-json/</a> about converting .csv to .json.</p>
<p>Do you have a way of converting a  .json fle to a .csv file?  Certainly would &#8216;preciate it!  </p>
<p>David &#8211; New Jersey, U.S.A.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Antonin Hildebrand</title>
		<link>http://tamlyn.org/2009/06/csv2json-convert-csv-to-json/comment-page-1/#comment-689</link>
		<dc:creator>Antonin Hildebrand</dc:creator>
		<pubDate>Sat, 05 Dec 2009 13:36:59 +0000</pubDate>
		<guid isPermaLink="false">http://tamlyn.org/?p=242#comment-689</guid>
		<description>Good job Tamlyn!

I needed to convert csv files from command-line. 
Here is a small ruby project nicely packaged as a ruby gem:

http://github.com/darwin/csv2json</description>
		<content:encoded><![CDATA[<p>Good job Tamlyn!</p>
<p>I needed to convert csv files from command-line.<br />
Here is a small ruby project nicely packaged as a ruby gem:</p>
<p><a href="http://github.com/darwin/csv2json" rel="nofollow">http://github.com/darwin/csv2json</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tamlyn</title>
		<link>http://tamlyn.org/2009/06/csv2json-convert-csv-to-json/comment-page-1/#comment-685</link>
		<dc:creator>Tamlyn</dc:creator>
		<pubDate>Tue, 17 Nov 2009 10:45:09 +0000</pubDate>
		<guid isPermaLink="false">http://tamlyn.org/?p=242#comment-685</guid>
		<description>@zeynel It has to be a plain text CSV file. It won&#039;t work in Google Docs because that creates an HTML file.</description>
		<content:encoded><![CDATA[<p>@zeynel It has to be a plain text CSV file. It won&#8217;t work in Google Docs because that creates an HTML file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zeynel</title>
		<link>http://tamlyn.org/2009/06/csv2json-convert-csv-to-json/comment-page-1/#comment-683</link>
		<dc:creator>zeynel</dc:creator>
		<pubDate>Thu, 12 Nov 2009 00:29:08 +0000</pubDate>
		<guid isPermaLink="false">http://tamlyn.org/?p=242#comment-683</guid>
		<description>Hello,

I tried this but it didn&#039;t work. I put the csv file in google docs and published it and i put in the url to convert but did not work. Any idea why?
Thnks</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I tried this but it didn&#8217;t work. I put the csv file in google docs and published it and i put in the url to convert but did not work. Any idea why?<br />
Thnks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jessik</title>
		<link>http://tamlyn.org/2009/06/csv2json-convert-csv-to-json/comment-page-1/#comment-682</link>
		<dc:creator>Jessik</dc:creator>
		<pubDate>Wed, 28 Oct 2009 17:32:19 +0000</pubDate>
		<guid isPermaLink="false">http://tamlyn.org/?p=242#comment-682</guid>
		<description>A million thanks! :)

Really!</description>
		<content:encoded><![CDATA[<p>A million thanks! <img src='http://tamlyn.org/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Really!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tamlyn</title>
		<link>http://tamlyn.org/2009/06/csv2json-convert-csv-to-json/comment-page-1/#comment-681</link>
		<dc:creator>Tamlyn</dc:creator>
		<pubDate>Wed, 28 Oct 2009 17:26:40 +0000</pubDate>
		<guid isPermaLink="false">http://tamlyn.org/?p=242#comment-681</guid>
		<description>Sure thing. Here&#039;s the important bit:

&lt;blockquote&gt;&lt;pre&gt;
$fp = @fopen($_GET[&#039;csv&#039;], &#039;r&#039;);

$headers = fgetcsv($fp, 2048);

$data = array();
while ($row = fgetcsv($fp, 2048)) {
	$item = array();
	foreach ($row as $key =&gt; $cell) {
		$item[$headers[$key]] = utf8_encode($cell);
	}
	$data[] = $item;
}

header(&#039;Content-type: text/javascript&#039;);
echo json_encode($data);
&lt;/pre&gt;&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>Sure thing. Here&#8217;s the important bit:</p>
<blockquote><pre>
$fp = @fopen($_GET['csv'], 'r');

$headers = fgetcsv($fp, 2048);

$data = array();
while ($row = fgetcsv($fp, 2048)) {
	$item = array();
	foreach ($row as $key => $cell) {
		$item[$headers[$key]] = utf8_encode($cell);
	}
	$data[] = $item;
}

header('Content-type: text/javascript');
echo json_encode($data);
</pre>
</blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jessik</title>
		<link>http://tamlyn.org/2009/06/csv2json-convert-csv-to-json/comment-page-1/#comment-680</link>
		<dc:creator>Jessik</dc:creator>
		<pubDate>Wed, 28 Oct 2009 17:14:29 +0000</pubDate>
		<guid isPermaLink="false">http://tamlyn.org/?p=242#comment-680</guid>
		<description>Great work!

I was wondering wether you&#039;d let me take a look at the source code, so I can implement it using ActionScript. I have some CSV files I need to convert to JSON. This of course, is part of a bigger project, but unfortunately time is something I lack right now. I&#039;d appreciate it if you could lend me a  hand.

Anyway, I know this is a long shot. I understand if you prefer to do otherwise. 

Thanks!</description>
		<content:encoded><![CDATA[<p>Great work!</p>
<p>I was wondering wether you&#8217;d let me take a look at the source code, so I can implement it using ActionScript. I have some CSV files I need to convert to JSON. This of course, is part of a bigger project, but unfortunately time is something I lack right now. I&#8217;d appreciate it if you could lend me a  hand.</p>
<p>Anyway, I know this is a long shot. I understand if you prefer to do otherwise. </p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://tamlyn.org/2009/06/csv2json-convert-csv-to-json/comment-page-1/#comment-669</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Sat, 19 Sep 2009 03:21:20 +0000</pubDate>
		<guid isPermaLink="false">http://tamlyn.org/?p=242#comment-669</guid>
		<description>Brilliant!

I love it- thanks a million.</description>
		<content:encoded><![CDATA[<p>Brilliant!</p>
<p>I love it- thanks a million.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
