<?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: PHP, JSON and JavaScript usage</title>
	<atom:link href="http://ditio.net/2008/07/17/php-json-and-javascript-usage/feed/" rel="self" type="application/rss+xml" />
	<link>http://ditio.net/2008/07/17/php-json-and-javascript-usage/</link>
	<description>Practical guide to web development, marketing and programming</description>
	<lastBuildDate>Sun, 07 Mar 2010 00:27:22 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: v14nt0</title>
		<link>http://ditio.net/2008/07/17/php-json-and-javascript-usage/comment-page-1/#comment-31329</link>
		<dc:creator>v14nt0</dc:creator>
		<pubDate>Tue, 19 Jan 2010 02:28:36 +0000</pubDate>
		<guid isPermaLink="false">http://ditio.net/?p=36#comment-31329</guid>
		<description>Great tutorial..., 
How about the opposite of this, like 
PHP-&gt;JSON-&gt;javascript

-PHP : Get server side data or query
-JSON:convert it to JSON
-javascript: use the data with javascript

THanks,</description>
		<content:encoded><![CDATA[<p>Great tutorial&#8230;,<br />
How about the opposite of this, like<br />
PHP-&gt;JSON-&gt;javascript</p>
<p>-PHP : Get server side data or query<br />
-JSON:convert it to JSON<br />
-javascript: use the data with javascript</p>
<p>THanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://ditio.net/2008/07/17/php-json-and-javascript-usage/comment-page-1/#comment-30362</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sat, 26 Dec 2009 04:49:30 +0000</pubDate>
		<guid isPermaLink="false">http://ditio.net/?p=36#comment-30362</guid>
		<description>So how do you use the decoded variable in your PHp file?</description>
		<content:encoded><![CDATA[<p>So how do you use the decoded variable in your PHp file?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: manki</title>
		<link>http://ditio.net/2008/07/17/php-json-and-javascript-usage/comment-page-1/#comment-29197</link>
		<dc:creator>manki</dc:creator>
		<pubDate>Wed, 02 Dec 2009 00:12:04 +0000</pubDate>
		<guid isPermaLink="false">http://ditio.net/?p=36#comment-29197</guid>
		<description>Hey thanks a lot! that was exactly what I&#039;ve been looking for.
great job!</description>
		<content:encoded><![CDATA[<p>Hey thanks a lot! that was exactly what I&#8217;ve been looking for.<br />
great job!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jaywink</title>
		<link>http://ditio.net/2008/07/17/php-json-and-javascript-usage/comment-page-1/#comment-25696</link>
		<dc:creator>jaywink</dc:creator>
		<pubDate>Sat, 05 Sep 2009 14:35:37 +0000</pubDate>
		<guid isPermaLink="false">http://ditio.net/?p=36#comment-25696</guid>
		<description>Thanks! This was a great help getting to learn something about JSON</description>
		<content:encoded><![CDATA[<p>Thanks! This was a great help getting to learn something about JSON</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PaulBM</title>
		<link>http://ditio.net/2008/07/17/php-json-and-javascript-usage/comment-page-1/#comment-25434</link>
		<dc:creator>PaulBM</dc:creator>
		<pubDate>Sun, 30 Aug 2009 23:56:29 +0000</pubDate>
		<guid isPermaLink="false">http://ditio.net/?p=36#comment-25434</guid>
		<description>Superb tutorial. I&#039;ve improved my JSON knowledge greatly thanks to your work. I was stuck at first until I read ronggur&#039;s comment about stripslashes().</description>
		<content:encoded><![CDATA[<p>Superb tutorial. I&#8217;ve improved my JSON knowledge greatly thanks to your work. I was stuck at first until I read ronggur&#8217;s comment about stripslashes().</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jconstantino</title>
		<link>http://ditio.net/2008/07/17/php-json-and-javascript-usage/comment-page-1/#comment-25233</link>
		<dc:creator>jconstantino</dc:creator>
		<pubDate>Thu, 27 Aug 2009 11:16:53 +0000</pubDate>
		<guid isPermaLink="false">http://ditio.net/?p=36#comment-25233</guid>
		<description>Thank you!</description>
		<content:encoded><![CDATA[<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ahmad Ginani</title>
		<link>http://ditio.net/2008/07/17/php-json-and-javascript-usage/comment-page-1/#comment-25048</link>
		<dc:creator>Ahmad Ginani</dc:creator>
		<pubDate>Sun, 23 Aug 2009 12:30:25 +0000</pubDate>
		<guid isPermaLink="false">http://ditio.net/?p=36#comment-25048</guid>
		<description>Thanks for your tutorial, It is very useful for me.</description>
		<content:encoded><![CDATA[<p>Thanks for your tutorial, It is very useful for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mary</title>
		<link>http://ditio.net/2008/07/17/php-json-and-javascript-usage/comment-page-1/#comment-22720</link>
		<dc:creator>Mary</dc:creator>
		<pubDate>Fri, 03 Jul 2009 19:54:13 +0000</pubDate>
		<guid isPermaLink="false">http://ditio.net/?p=36#comment-22720</guid>
		<description>Thoughtful post and well written. Please write more on this if you have time.</description>
		<content:encoded><![CDATA[<p>Thoughtful post and well written. Please write more on this if you have time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sajjan</title>
		<link>http://ditio.net/2008/07/17/php-json-and-javascript-usage/comment-page-1/#comment-22452</link>
		<dc:creator>Sajjan</dc:creator>
		<pubDate>Sat, 27 Jun 2009 01:08:34 +0000</pubDate>
		<guid isPermaLink="false">http://ditio.net/?p=36#comment-22452</guid>
		<description>Hi,

I am using json2.js and trying to parse array but I am getting a script error saying &quot;text.replace is not a function&quot; json2.js(line 452)

Here is the variable that i am trying to parse:
&lt;code&gt;
var menuData = 
{
	menus:[
		 {
		   id:&#039;17&#039;,
		   text:&#039;menu1&#039;,
                   items:[&#039;aaa&#039;,&#039;bbb&#039;]
		 },
		 {
        	   id:&#039;19&#039;,
		   text:&#039;menu2&#039;,
                   items:[&#039;ccc&#039;,&#039;ddd&#039;]
		 },
		 {
		    id:&#039;18&#039;,
		    text:&#039;menu3&#039;,
                    items:[&#039;eee&#039;,&#039;fff&#039;]
		 }
		]
};
menuData = JSON.parse(menuData);
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am using json2.js and trying to parse array but I am getting a script error saying &#8220;text.replace is not a function&#8221; json2.js(line 452)</p>
<p>Here is the variable that i am trying to parse:<br />
<code><br />
var menuData =<br />
{<br />
	menus:[<br />
		 {<br />
		   id:'17',<br />
		   text:'menu1',<br />
                   items:['aaa','bbb']<br />
		 },<br />
		 {<br />
        	   id:'19',<br />
		   text:'menu2',<br />
                   items:['ccc','ddd']<br />
		 },<br />
		 {<br />
		    id:'18',<br />
		    text:'menu3',<br />
                    items:['eee','fff']<br />
		 }<br />
		]<br />
};<br />
menuData = JSON.parse(menuData);<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manas</title>
		<link>http://ditio.net/2008/07/17/php-json-and-javascript-usage/comment-page-1/#comment-22315</link>
		<dc:creator>Manas</dc:creator>
		<pubDate>Tue, 23 Jun 2009 16:10:25 +0000</pubDate>
		<guid isPermaLink="false">http://ditio.net/?p=36#comment-22315</guid>
		<description>Hey that was awesome!!!..exactly what I was looking for</description>
		<content:encoded><![CDATA[<p>Hey that was awesome!!!..exactly what I was looking for</p>
]]></content:encoded>
	</item>
</channel>
</rss>
