<?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"
	>
<channel>
	<title>Comments on: Tutorial : Using JSON with Flex 2 and ActionScript 3</title>
	<atom:link href="http://www.mikechambers.com/blog/2006/03/28/tutorial-using-json-with-flex-2-and-actionscript-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mikechambers.com/blog/2006/03/28/tutorial-using-json-with-flex-2-and-actionscript-3/</link>
	<description>code = joy</description>
	<pubDate>Fri, 21 Nov 2008 04:59:09 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Joseph Zibara</title>
		<link>http://www.mikechambers.com/blog/2006/03/28/tutorial-using-json-with-flex-2-and-actionscript-3/#comment-14306</link>
		<dc:creator>Joseph Zibara</dc:creator>
		<pubDate>Thu, 09 Oct 2008 18:46:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=966#comment-14306</guid>
		<description>Can Someone paste the json file, cause I have a feeling it's not being found.</description>
		<content:encoded><![CDATA[<p>Can Someone paste the json file, cause I have a feeling it&#8217;s not being found.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse Donat</title>
		<link>http://www.mikechambers.com/blog/2006/03/28/tutorial-using-json-with-flex-2-and-actionscript-3/#comment-13552</link>
		<dc:creator>Jesse Donat</dc:creator>
		<pubDate>Thu, 28 Aug 2008 17:43:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=966#comment-13552</guid>
		<description>Same problem as anoop</description>
		<content:encoded><![CDATA[<p>Same problem as anoop</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan Pillai</title>
		<link>http://www.mikechambers.com/blog/2006/03/28/tutorial-using-json-with-flex-2-and-actionscript-3/#comment-12668</link>
		<dc:creator>Nathan Pillai</dc:creator>
		<pubDate>Tue, 08 Jul 2008 22:22:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=966#comment-12668</guid>
		<description>I have a Flex / JSON / DWR issue :

private function onJSONLoad(event:ResultEvent):void
 {
var params:Object = {}; 
      params["callCount"] = "1"; 
      params["page"] = "/index.jsp";
      params["c0-scriptName"] = "Suggest";
      params["c0-methodName"] = "search";
      params["c0-id"] = "0";
                
      params["c0-param0"] = "string:search-term"; 
      params["c0-param1"] = "string:goodman group%7C";
      params["c0-param2"] = "number:10";
      params["batchId"] = "0";
      params["scriptSessionId"] = "Nathan-DeskTop";
                           
trace(params);
				
	trace("service call begin");

	service.send(params);

trace("service call end");
}

The above Action script  POSTs data to a Servlet  below well :


			
It fails to post data to a JSON/DWR based service below :




The response from the DWR service is below :
//#DWR-REPLY

if (window.dwr) dwr.engine._remoteHandleBatchException({ name:'org.directwebremoting.extend.ServerException', message:'The specified call count is not a number: null' });

else if (window.parent.dwr) window.parent.dwr.engine._remoteHandleBatchException({ name:'org.directwebremoting.extend.ServerException', message:'The specified call count is not a number: null' });


Based on  the error 'The specified call count is not a number: null' – I guess the params["callCount"] = "1"; is not posted to the server.  Probably nothing gets posted to the server in the JSON format.

I tried these below, no luck

//service.send( JSON.encode(params) );
				
//var  encoder:JSONEncoder = new JSONEncoder(params);
				
//service.send( encoder.getString() );

Wondering how to post JSON data, could you please help ?</description>
		<content:encoded><![CDATA[<p>I have a Flex / JSON / DWR issue :</p>
<p>private function onJSONLoad(event:ResultEvent):void<br />
 {<br />
var params:Object = {};<br />
      params["callCount"] = &#8220;1&#8243;;<br />
      params["page"] = &#8220;/index.jsp&#8221;;<br />
      params["c0-scriptName"] = &#8220;Suggest&#8221;;<br />
      params["c0-methodName"] = &#8220;search&#8221;;<br />
      params["c0-id"] = &#8220;0&#8243;;</p>
<p>      params["c0-param0"] = &#8220;string:search-term&#8221;;<br />
      params["c0-param1"] = &#8220;string:goodman group%7C&#8221;;<br />
      params["c0-param2"] = &#8220;number:10&#8243;;<br />
      params["batchId"] = &#8220;0&#8243;;<br />
      params["scriptSessionId"] = &#8220;Nathan-DeskTop&#8221;;</p>
<p>trace(params);</p>
<p>	trace(&#8221;service call begin&#8221;);</p>
<p>	service.send(params);</p>
<p>trace(&#8221;service call end&#8221;);<br />
}</p>
<p>The above Action script  POSTs data to a Servlet  below well :</p>
<p>It fails to post data to a JSON/DWR based service below :</p>
<p>The response from the DWR service is below :<br />
//#DWR-REPLY</p>
<p>if (window.dwr) dwr.engine._remoteHandleBatchException({ name:&#8217;org.directwebremoting.extend.ServerException&#8217;, message:&#8217;The specified call count is not a number: null&#8217; });</p>
<p>else if (window.parent.dwr) window.parent.dwr.engine._remoteHandleBatchException({ name:&#8217;org.directwebremoting.extend.ServerException&#8217;, message:&#8217;The specified call count is not a number: null&#8217; });</p>
<p>Based on  the error &#8216;The specified call count is not a number: null&#8217; – I guess the params["callCount"] = &#8220;1&#8243;; is not posted to the server.  Probably nothing gets posted to the server in the JSON format.</p>
<p>I tried these below, no luck</p>
<p>//service.send( JSON.encode(params) );</p>
<p>//var  encoder:JSONEncoder = new JSONEncoder(params);</p>
<p>//service.send( encoder.getString() );</p>
<p>Wondering how to post JSON data, could you please help ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anoop</title>
		<link>http://www.mikechambers.com/blog/2006/03/28/tutorial-using-json-with-flex-2-and-actionscript-3/#comment-12598</link>
		<dc:creator>anoop</dc:creator>
		<pubDate>Wed, 25 Jun 2008 16:39:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=966#comment-12598</guid>
		<description>how remove the error "call to possibly undefined method JSONDecoder"
 i import all the classes like
    import com.adobe.serialization.json.JSONDecoder; 
 but in that after typing import.com.adobe. ,i get only sourceview,does not get serialization in that how to get that...i am flex beginner...if u helping means its a great thing.......</description>
		<content:encoded><![CDATA[<p>how remove the error &#8220;call to possibly undefined method JSONDecoder&#8221;<br />
 i import all the classes like<br />
    import com.adobe.serialization.json.JSONDecoder;<br />
 but in that after typing import.com.adobe. ,i get only sourceview,does not get serialization in that how to get that&#8230;i am flex beginner&#8230;if u helping means its a great thing&#8230;&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sreeks</title>
		<link>http://www.mikechambers.com/blog/2006/03/28/tutorial-using-json-with-flex-2-and-actionscript-3/#comment-12510</link>
		<dc:creator>Sreeks</dc:creator>
		<pubDate>Tue, 10 Jun 2008 10:57:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=966#comment-12510</guid>
		<description>Hi Mike,

I am getting the following error when tried to use the code provided in this blog. I appreciate any help is provided to me to sort out this issue.



Error: Unexpected o encountered
	at com.adobe.serialization.json::JSONTokenizer/parseError()[C:\Development\ContractProjects\Adobe\as3corelib\src\com\adobe\serialization\json\JSONTokenizer.as:546]
	at com.adobe.serialization.json::JSONTokenizer/getNextToken()[C:\Development\ContractProjects\Adobe\as3corelib\src\com\adobe\serialization\json\JSONTokenizer.as:171]
	at com.adobe.serialization.json::JSONDecoder/nextToken()[C:\Development\ContractProjects\Adobe\as3corelib\src\com\adobe\serialization\json\JSONDecoder.as:86]
	at com.adobe.serialization.json::JSONDecoder/parseObject()[C:\Development\ContractProjects\Adobe\as3corelib\src\com\adobe\serialization\json\JSONDecoder.as:142]
	at com.adobe.serialization.json::JSONDecoder/parseValue()[C:\Development\ContractProjects\Adobe\as3corelib\src\com\adobe\serialization\json\JSONDecoder.as:199]
	at com.adobe.serialization.json::JSONDecoder()[C:\Development\ContractProjects\Adobe\as3corelib\src\com\adobe\serialization\json\JSONDecoder.as:64]
	at com.adobe.serialization.json::JSON$/decode()[C:\Development\ContractProjects\Adobe\as3corelib\src\com\adobe\serialization\json\JSON.as:81]
	at TestJSON/onJSONLoad()[D:\Other\Workplace\Flex\SampleProject\src\TestJSON.mxml:15]
	at TestJSON/__xmlRpc_result()[D:\Other\Workplace\Flex\SampleProject\src\TestJSON.mxml:34]
	at flash.events::EventDispatcher/dispatchEventFunction()





Awaiting for your reply.

Thanks for your precious time.
Sreekanth S</description>
		<content:encoded><![CDATA[<p>Hi Mike,</p>
<p>I am getting the following error when tried to use the code provided in this blog. I appreciate any help is provided to me to sort out this issue.</p>
<p>Error: Unexpected o encountered<br />
	at com.adobe.serialization.json::JSONTokenizer/parseError()[C:\Development\ContractProjects\Adobe\as3corelib\src\com\adobe\serialization\json\JSONTokenizer.as:546]<br />
	at com.adobe.serialization.json::JSONTokenizer/getNextToken()[C:\Development\ContractProjects\Adobe\as3corelib\src\com\adobe\serialization\json\JSONTokenizer.as:171]<br />
	at com.adobe.serialization.json::JSONDecoder/nextToken()[C:\Development\ContractProjects\Adobe\as3corelib\src\com\adobe\serialization\json\JSONDecoder.as:86]<br />
	at com.adobe.serialization.json::JSONDecoder/parseObject()[C:\Development\ContractProjects\Adobe\as3corelib\src\com\adobe\serialization\json\JSONDecoder.as:142]<br />
	at com.adobe.serialization.json::JSONDecoder/parseValue()[C:\Development\ContractProjects\Adobe\as3corelib\src\com\adobe\serialization\json\JSONDecoder.as:199]<br />
	at com.adobe.serialization.json::JSONDecoder()[C:\Development\ContractProjects\Adobe\as3corelib\src\com\adobe\serialization\json\JSONDecoder.as:64]<br />
	at com.adobe.serialization.json::JSON$/decode()[C:\Development\ContractProjects\Adobe\as3corelib\src\com\adobe\serialization\json\JSON.as:81]<br />
	at TestJSON/onJSONLoad()[D:\Other\Workplace\Flex\SampleProject\src\TestJSON.mxml:15]<br />
	at TestJSON/__xmlRpc_result()[D:\Other\Workplace\Flex\SampleProject\src\TestJSON.mxml:34]<br />
	at flash.events::EventDispatcher/dispatchEventFunction()</p>
<p>Awaiting for your reply.</p>
<p>Thanks for your precious time.<br />
Sreekanth S</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://www.mikechambers.com/blog/2006/03/28/tutorial-using-json-with-flex-2-and-actionscript-3/#comment-12483</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Mon, 02 Jun 2008 20:48:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=966#comment-12483</guid>
		<description>I'm having the same issue as John Hall.  It seems to be an issue with Flex 3 and the corelib ActionScript 3 library.

Anyone found a solution to this?</description>
		<content:encoded><![CDATA[<p>I&#8217;m having the same issue as John Hall.  It seems to be an issue with Flex 3 and the corelib ActionScript 3 library.</p>
<p>Anyone found a solution to this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith</title>
		<link>http://www.mikechambers.com/blog/2006/03/28/tutorial-using-json-with-flex-2-and-actionscript-3/#comment-12296</link>
		<dc:creator>Keith</dc:creator>
		<pubDate>Tue, 20 May 2008 17:55:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=966#comment-12296</guid>
		<description>http://weblogs.macromedia.com/mesh/mashedpotato.json seems to be missing, although my application runs fine...

Thanks</description>
		<content:encoded><![CDATA[<p><a href="http://weblogs.macromedia.com/mesh/mashedpotato.json" rel="nofollow">http://weblogs.macromedia.com/mesh/mashedpotato.json</a> seems to be missing, although my application runs fine&#8230;</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Hall</title>
		<link>http://www.mikechambers.com/blog/2006/03/28/tutorial-using-json-with-flex-2-and-actionscript-3/#comment-12236</link>
		<dc:creator>John Hall</dc:creator>
		<pubDate>Tue, 13 May 2008 20:15:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=966#comment-12236</guid>
		<description>I followed the instructions, even pasted in the code (after notepading it to make sure it's plain text) and still get the following error ... ideas?:

Error: Unexpected &#60; encountered
	at com.adobe.serialization.json::JSONTokenizer/parseError()[C:\Development\ContractProjects\Adobe\as3corelib\src\com\adobe\serialization\json\JSONTokenizer.as:546]
	at com.adobe.serialization.json::JSONTokenizer/getNextToken()[C:\Development\ContractProjects\Adobe\as3corelib\src\com\adobe\serialization\json\JSONTokenizer.as:171]
	at com.adobe.serialization.json::JSONDecoder/nextToken()[C:\Development\ContractProjects\Adobe\as3corelib\src\com\adobe\serialization\json\JSONDecoder.as:86]
	at com.adobe.serialization.json::JSONDecoder()[C:\Development\ContractProjects\Adobe\as3corelib\src\com\adobe\serialization\json\JSONDecoder.as:63]
	at com.adobe.serialization.json::JSON$/decode()[C:\Development\ContractProjects\Adobe\as3corelib\src\com\adobe\serialization\json\JSON.as:81]
	at main/onJSONLoad()[C:\Documents and Settings\Cactusware\My Documents\dspro\JSON Example\src\main.mxml:18]
	at main/__service_result()[C:\Documents and Settings\Cactusware\My Documents\dspro\JSON Example\src\main.mxml:32]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at mx.rpc.http.mxml::HTTPService/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\http\mxml\HTTPService.as:275]
	at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:191]
	at mx.rpc::Responder/result()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Responder.as:41]
	at mx.rpc::AsyncRequest/acknowledge()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:74]
	at DirectHTTPMessageResponder/completeHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:381]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at flash.net::URLLoader/onComplete()</description>
		<content:encoded><![CDATA[<p>I followed the instructions, even pasted in the code (after notepading it to make sure it&#8217;s plain text) and still get the following error &#8230; ideas?:</p>
<p>Error: Unexpected &lt; encountered<br />
	at com.adobe.serialization.json::JSONTokenizer/parseError()[C:\Development\ContractProjects\Adobe\as3corelib\src\com\adobe\serialization\json\JSONTokenizer.as:546]<br />
	at com.adobe.serialization.json::JSONTokenizer/getNextToken()[C:\Development\ContractProjects\Adobe\as3corelib\src\com\adobe\serialization\json\JSONTokenizer.as:171]<br />
	at com.adobe.serialization.json::JSONDecoder/nextToken()[C:\Development\ContractProjects\Adobe\as3corelib\src\com\adobe\serialization\json\JSONDecoder.as:86]<br />
	at com.adobe.serialization.json::JSONDecoder()[C:\Development\ContractProjects\Adobe\as3corelib\src\com\adobe\serialization\json\JSONDecoder.as:63]<br />
	at com.adobe.serialization.json::JSON$/decode()[C:\Development\ContractProjects\Adobe\as3corelib\src\com\adobe\serialization\json\JSON.as:81]<br />
	at main/onJSONLoad()[C:\Documents and Settings\Cactusware\My Documents\dspro\JSON Example\src\main.mxml:18]<br />
	at main/__service_result()[C:\Documents and Settings\Cactusware\My Documents\dspro\JSON Example\src\main.mxml:32]<br />
	at flash.events::EventDispatcher/dispatchEventFunction()<br />
	at flash.events::EventDispatcher/dispatchEvent()<br />
	at mx.rpc.http.mxml::HTTPService/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\http\mxml\HTTPService.as:275]<br />
	at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:191]<br />
	at mx.rpc::Responder/result()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Responder.as:41]<br />
	at mx.rpc::AsyncRequest/acknowledge()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:74]<br />
	at DirectHTTPMessageResponder/completeHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:381]<br />
	at flash.events::EventDispatcher/dispatchEventFunction()<br />
	at flash.events::EventDispatcher/dispatchEvent()<br />
	at flash.net::URLLoader/onComplete()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Armando Leopoldo Keller</title>
		<link>http://www.mikechambers.com/blog/2006/03/28/tutorial-using-json-with-flex-2-and-actionscript-3/#comment-12191</link>
		<dc:creator>Armando Leopoldo Keller</dc:creator>
		<pubDate>Tue, 06 May 2008 19:05:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=966#comment-12191</guid>
		<description>Hello, when i save the json string(Object -&#62; String) in one database, and i`m trying to get the object (String -&#62; Object), but have and error :
the String = [{"cargo":"teste","tipo":"Químico","epis":"[{"eficaz":"Sim","caepi":"7676","gfip":"76"},{"eficaz":"Sim","caepi":"76763","gfip":"763"}]","intensidade":"67587","empresa":"kmmedicina","tecnica":"68756897","fatorderisco":"7698rg"}]

my code:
var objAt:Object = (re[i] as Object);
					trace(objAt)
					var id:int = int(objAt.id);
					var str:String = String(objAt.riscos);
					trace("STR: ",str);
					var tobj:Array = (JSON.decode(str) as Array);


and the error:
Error: Unexpected e encountered
	at com.adobe.serialization.json::JSONTokenizer/parseError()[C:\Actionscript\com\adobe\serialization\json\JSONTokenizer.as:546]
	at com.adobe.serialization.json::JSONTokenizer/getNextToken()[C:\Actionscript\com\adobe\serialization\json\JSONTokenizer.as:171]
	at com.adobe.serialization.json::JSONDecoder/nextToken()[C:\Actionscript\com\adobe\serialization\json\JSONDecoder.as:86]
	at com.adobe.serialization.json::JSONDecoder/parseObject()[C:\Actionscript\com\adobe\serialization\json\JSONDecoder.as:169]
	at com.adobe.serialization.json::JSONDecoder/parseValue()[C:\Actionscript\com\adobe\serialization\json\JSONDecoder.as:199]
	at com.adobe.serialization.json::JSONDecoder/parseArray()[C:\Actionscript\com\adobe\serialization\json\JSONDecoder.as:111]
	at com.adobe.serialization.json::JSONDecoder/parseValue()[C:\Actionscript\com\adobe\serialization\json\JSONDecoder.as:202]
	at com.adobe.serialization.json::JSONDecoder()[C:\Actionscript\com\adobe\serialization\json\JSONDecoder.as:64]
	at com.adobe.serialization.json::JSON$/decode()[C:\Actionscript\com\adobe\serialization\json\JSON.as:81]
	at Janelas.Riscos::CadastrarRiscos/recebeTodos()[C:\Users\adm\Documents\Flex Builder 3\Teste KM\src\Janelas\Riscos\CadastrarRiscos.mxml:216]


do you have any idea, of what is this ?


thank you.</description>
		<content:encoded><![CDATA[<p>Hello, when i save the json string(Object -&gt; String) in one database, and i`m trying to get the object (String -&gt; Object), but have and error :<br />
the String = [{"cargo":"teste","tipo":"Químico","epis":"[{"eficaz":"Sim","caepi":"7676","gfip":"76"},{"eficaz":"Sim","caepi":"76763","gfip":"763"}]&#8220;,&#8221;intensidade&#8221;:&#8221;67587&#8243;,&#8221;empresa&#8221;:&#8221;kmmedicina&#8221;,&#8221;tecnica&#8221;:&#8221;68756897&#8243;,&#8221;fatorderisco&#8221;:&#8221;7698rg&#8221;}]</p>
<p>my code:<br />
var objAt:Object = (re[i] as Object);<br />
					trace(objAt)<br />
					var id:int = int(objAt.id);<br />
					var str:String = String(objAt.riscos);<br />
					trace(&#8221;STR: &#8220;,str);<br />
					var tobj:Array = (JSON.decode(str) as Array);</p>
<p>and the error:<br />
Error: Unexpected e encountered<br />
	at com.adobe.serialization.json::JSONTokenizer/parseError()[C:\Actionscript\com\adobe\serialization\json\JSONTokenizer.as:546]<br />
	at com.adobe.serialization.json::JSONTokenizer/getNextToken()[C:\Actionscript\com\adobe\serialization\json\JSONTokenizer.as:171]<br />
	at com.adobe.serialization.json::JSONDecoder/nextToken()[C:\Actionscript\com\adobe\serialization\json\JSONDecoder.as:86]<br />
	at com.adobe.serialization.json::JSONDecoder/parseObject()[C:\Actionscript\com\adobe\serialization\json\JSONDecoder.as:169]<br />
	at com.adobe.serialization.json::JSONDecoder/parseValue()[C:\Actionscript\com\adobe\serialization\json\JSONDecoder.as:199]<br />
	at com.adobe.serialization.json::JSONDecoder/parseArray()[C:\Actionscript\com\adobe\serialization\json\JSONDecoder.as:111]<br />
	at com.adobe.serialization.json::JSONDecoder/parseValue()[C:\Actionscript\com\adobe\serialization\json\JSONDecoder.as:202]<br />
	at com.adobe.serialization.json::JSONDecoder()[C:\Actionscript\com\adobe\serialization\json\JSONDecoder.as:64]<br />
	at com.adobe.serialization.json::JSON$/decode()[C:\Actionscript\com\adobe\serialization\json\JSON.as:81]<br />
	at Janelas.Riscos::CadastrarRiscos/recebeTodos()[C:\Users\adm\Documents\Flex Builder 3\Teste KM\src\Janelas\Riscos\CadastrarRiscos.mxml:216]</p>
<p>do you have any idea, of what is this ?</p>
<p>thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.mikechambers.com/blog/2006/03/28/tutorial-using-json-with-flex-2-and-actionscript-3/#comment-11944</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Wed, 16 Apr 2008 19:47:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=966#comment-11944</guid>
		<description>LOL, you know how it is ... as soon as you post asking for help you figure it out.  Here is the solution for the Flickr JSON feed

private function onJSONLoad(event:ResultEvent):void
{
	//get the raw JSON data and cast to String
	var rawData:String = String(event.result);

	// Rip off the Flickr header
	rawData = rawData.split("jsonFlickrFeed(").join("");

	//decode the data to ActionScript using the JSON API
	var obj:Object = JSON.decode(rawData);

	// Access the items node to get the array of items
	var arr:Array = (obj.items as Array);

	//create a new ArrayCollection passing the de-serialized Array
	//ArrayCollections work better as DataProviders, as they can
	//be watched for changes.
	var dp:ArrayCollection = new ArrayCollection(arr);

	//pass the ArrayCollection to the DataGrid as its dataProvider.
	grid.dataProvider = dp;
	
}</description>
		<content:encoded><![CDATA[<p>LOL, you know how it is &#8230; as soon as you post asking for help you figure it out.  Here is the solution for the Flickr JSON feed</p>
<p>private function onJSONLoad(event:ResultEvent):void<br />
{<br />
	//get the raw JSON data and cast to String<br />
	var rawData:String = String(event.result);</p>
<p>	// Rip off the Flickr header<br />
	rawData = rawData.split(&#8221;jsonFlickrFeed(&#8221;).join(&#8221;");</p>
<p>	//decode the data to ActionScript using the JSON API<br />
	var obj:Object = JSON.decode(rawData);</p>
<p>	// Access the items node to get the array of items<br />
	var arr:Array = (obj.items as Array);</p>
<p>	//create a new ArrayCollection passing the de-serialized Array<br />
	//ArrayCollections work better as DataProviders, as they can<br />
	//be watched for changes.<br />
	var dp:ArrayCollection = new ArrayCollection(arr);</p>
<p>	//pass the ArrayCollection to the DataGrid as its dataProvider.<br />
	grid.dataProvider = dp;</p>
<p>}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
