<?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>Kerkness.ca &#187; json</title>
	<atom:link href="http://www.kerkness.ca/tagged/json/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kerkness.ca</link>
	<description>flexing my kerkness, among other things</description>
	<lastBuildDate>Wed, 14 Oct 2009 15:12:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP json_encode() and Flex JSON.decode Gotcha</title>
		<link>http://www.kerkness.ca/php-json_encode-and-flex-jsondecode-gotcha/</link>
		<comments>http://www.kerkness.ca/php-json_encode-and-flex-jsondecode-gotcha/#comments</comments>
		<pubDate>Sat, 13 Sep 2008 23:19:00 +0000</pubDate>
		<dc:creator>Kerk</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[json]]></category>

		<guid isPermaLink="false">http://www.kerkness.ca/blog/?p=56</guid>
		<description><![CDATA[I came across a little &#8216;gotcha&#8217; when trying to get Flex JSON.decode to properly decode a JSON string I was producing with PHP. 
The one of the elements in the string contained &#8216; &#38;quote; &#8216; which when being encoded by php and sent as a HTTPService response back to my Flex application was being converted [...]]]></description>
			<content:encoded><![CDATA[<p>I came across a little &#8216;gotcha&#8217; when trying to get Flex <i><b>JSON.decode</b></i> to properly decode a JSON string I was producing with PHP. </p>
<p>The one of the elements in the string contained &#8216; <i><b>&amp;quote;</b></i> &#8216; which when being encoded by php and sent as a <i><b>HTTPService</b></i> response back to my Flex application was being converted back into double quotes ( <i><b>&#8220;</b></i> ). When Flex <i><b>JSON.decode </b></i>attempted to decode the string it would silently fail.  No errors or anything.</p>
<p>In my case my JSON string was already pretty complicated with lots of variable content so it took a while to figure this out.  Hopefully someone else finds this post and saves themselves some time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kerkness.ca/php-json_encode-and-flex-jsondecode-gotcha/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
