<?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_decode() Not Working in PHP?</title>
	<atom:link href="http://blog.thefrontiergroup.com.au/2008/11/json_decode_php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.thefrontiergroup.com.au/2008/11/json_decode_php/</link>
	<description>Your peek inside the collective mind of The Frontier Group</description>
	<lastBuildDate>Tue, 08 May 2012 03:28:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Rachana</title>
		<link>http://blog.thefrontiergroup.com.au/2008/11/json_decode_php/comment-page-1/#comment-3363</link>
		<dc:creator>Rachana</dc:creator>
		<pubDate>Thu, 15 Dec 2011 06:32:19 +0000</pubDate>
		<guid isPermaLink="false">http://thefrontiergroup.com.au/blog/?p=147#comment-3363</guid>
		<description>Hey mate! Thanks for sharing. This help me a lot.</description>
		<content:encoded><![CDATA[<p>Hey mate! Thanks for sharing. This help me a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Khayer</title>
		<link>http://blog.thefrontiergroup.com.au/2008/11/json_decode_php/comment-page-1/#comment-3271</link>
		<dc:creator>Khayer</dc:creator>
		<pubDate>Mon, 10 Oct 2011 18:17:56 +0000</pubDate>
		<guid isPermaLink="false">http://thefrontiergroup.com.au/blog/?p=147#comment-3271</guid>
		<description>It save me from my client bullet !!!!! Than you very much..</description>
		<content:encoded><![CDATA[<p>It save me from my client bullet !!!!! Than you very much..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AHUOO</title>
		<link>http://blog.thefrontiergroup.com.au/2008/11/json_decode_php/comment-page-1/#comment-3257</link>
		<dc:creator>AHUOO</dc:creator>
		<pubDate>Wed, 28 Sep 2011 15:45:47 +0000</pubDate>
		<guid isPermaLink="false">http://thefrontiergroup.com.au/blog/?p=147#comment-3257</guid>
		<description>cool, thanks for your sharing.</description>
		<content:encoded><![CDATA[<p>cool, thanks for your sharing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: same</title>
		<link>http://blog.thefrontiergroup.com.au/2008/11/json_decode_php/comment-page-1/#comment-3042</link>
		<dc:creator>same</dc:creator>
		<pubDate>Tue, 28 Jun 2011 20:09:39 +0000</pubDate>
		<guid isPermaLink="false">http://thefrontiergroup.com.au/blog/?p=147#comment-3042</guid>
		<description>same here. stupid magic quotes.</description>
		<content:encoded><![CDATA[<p>same here. stupid magic quotes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blog.thefrontiergroup.com.au/2008/11/json_decode_php/comment-page-1/#comment-2252</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Tue, 22 Feb 2011 06:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://thefrontiergroup.com.au/blog/?p=147#comment-2252</guid>
		<description>Thanks very very much,
Finding this solution has saved me from hours of frustration!!

Thanks Again!!!</description>
		<content:encoded><![CDATA[<p>Thanks very very much,<br />
Finding this solution has saved me from hours of frustration!!</p>
<p>Thanks Again!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gurunathan</title>
		<link>http://blog.thefrontiergroup.com.au/2008/11/json_decode_php/comment-page-1/#comment-2235</link>
		<dc:creator>gurunathan</dc:creator>
		<pubDate>Mon, 24 Jan 2011 15:22:15 +0000</pubDate>
		<guid isPermaLink="false">http://thefrontiergroup.com.au/blog/?p=147#comment-2235</guid>
		<description>$notes = json_decode($data);
$handle = fopen(&#039;patients/in_file.txt&#039;, &#039;r&#039;);

 $notes1 = json_decode(fgets($handle));

fclose($handle);

both fgets($handle) and $data has the same value

[{&quot;ID&quot;:1,&quot;LEFT&quot;:&quot;70.87087087087087&quot;,&quot;TOP&quot;:&quot;22.8&quot;,&quot;WIDTH&quot;:&quot;4.804804804804805&quot;,&quot;HEIGHT&quot;:&quot;3.2&quot;,&quot;DATE&quot;:{&quot;Y&quot;:&quot;2011&quot;,&quot;M&quot;:&quot;01&quot;,&quot;D&quot;:&quot;23&quot;,&quot;H&quot;:&quot;22&quot;,&quot;I&quot;:&quot;42&quot;},&quot;NOTE&quot;:&quot;dsfs&quot;,&quot;AUTHOR&quot;:&quot;&quot;,&quot;LINK&quot;:&quot;&quot;,&quot;COLOR&quot;:&quot;orange&quot;}]

but $notes return NULL, where  $notes1 returns  Array ( [0] =&gt; stdClass Object ( [ID] =&gt; 1 [LEFT] =&gt; 70.87087087087087 [TOP] =&gt; 22.8 [WIDTH] =&gt; 4.804804804804805 [HEIGHT] =&gt; 3.2 [DATE] =&gt; stdClass Object ( [Y] =&gt; 2011 [M] =&gt; 01 [D] =&gt; 23 [H] =&gt; 22 [I] =&gt; 42 ) [NOTE] =&gt; dsfs [AUTHOR] =&gt; [LINK] =&gt; [COLOR] =&gt; orange ) ).

Please do help..

I tried your solution. But the issue not solved.</description>
		<content:encoded><![CDATA[<p>$notes = json_decode($data);<br />
$handle = fopen(&#8216;patients/in_file.txt&#8217;, &#8216;r&#8217;);</p>
<p> $notes1 = json_decode(fgets($handle));</p>
<p>fclose($handle);</p>
<p>both fgets($handle) and $data has the same value</p>
<p>[{"ID":1,"LEFT":"70.87087087087087","TOP":"22.8","WIDTH":"4.804804804804805","HEIGHT":"3.2","DATE":{"Y":"2011","M":"01","D":"23","H":"22","I":"42"},"NOTE":"dsfs","AUTHOR":"","LINK":"","COLOR":"orange"}]</p>
<p>but $notes return NULL, where  $notes1 returns  Array ( [0] =&gt; stdClass Object ( [ID] =&gt; 1 [LEFT] =&gt; 70.87087087087087 [TOP] =&gt; 22.8 [WIDTH] =&gt; 4.804804804804805 [HEIGHT] =&gt; 3.2 [DATE] =&gt; stdClass Object ( [Y] =&gt; 2011 [M] =&gt; 01 [D] =&gt; 23 [H] =&gt; 22 [I] =&gt; 42 ) [NOTE] =&gt; dsfs [AUTHOR] =&gt; [LINK] =&gt; [COLOR] =&gt; orange ) ).</p>
<p>Please do help..</p>
<p>I tried your solution. But the issue not solved.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joost</title>
		<link>http://blog.thefrontiergroup.com.au/2008/11/json_decode_php/comment-page-1/#comment-2039</link>
		<dc:creator>Joost</dc:creator>
		<pubDate>Tue, 12 Oct 2010 13:12:27 +0000</pubDate>
		<guid isPermaLink="false">http://thefrontiergroup.com.au/blog/?p=147#comment-2039</guid>
		<description>Thanks! Helped me out today :-)</description>
		<content:encoded><![CDATA[<p>Thanks! Helped me out today :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://blog.thefrontiergroup.com.au/2008/11/json_decode_php/comment-page-1/#comment-2035</link>
		<dc:creator>David</dc:creator>
		<pubDate>Sat, 09 Oct 2010 16:32:37 +0000</pubDate>
		<guid isPermaLink="false">http://thefrontiergroup.com.au/blog/?p=147#comment-2035</guid>
		<description>Thanks a lot man, it really helps</description>
		<content:encoded><![CDATA[<p>Thanks a lot man, it really helps</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ZIOM</title>
		<link>http://blog.thefrontiergroup.com.au/2008/11/json_decode_php/comment-page-1/#comment-1998</link>
		<dc:creator>ZIOM</dc:creator>
		<pubDate>Tue, 14 Sep 2010 14:21:25 +0000</pubDate>
		<guid isPermaLink="false">http://thefrontiergroup.com.au/blog/?p=147#comment-1998</guid>
		<description>DUDE&gt;&lt; THANKS&lt; LOVE U DAAAAMN</description>
		<content:encoded><![CDATA[<p>DUDE&gt;&lt; THANKS&lt; LOVE U DAAAAMN</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: virtualme123</title>
		<link>http://blog.thefrontiergroup.com.au/2008/11/json_decode_php/comment-page-1/#comment-1959</link>
		<dc:creator>virtualme123</dc:creator>
		<pubDate>Fri, 13 Aug 2010 10:43:25 +0000</pubDate>
		<guid isPermaLink="false">http://thefrontiergroup.com.au/blog/?p=147#comment-1959</guid>
		<description>Thanks Aaron, this was a great help. Was racking my brain for a while on this issue.</description>
		<content:encoded><![CDATA[<p>Thanks Aaron, this was a great help. Was racking my brain for a while on this issue.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

