You have a properly formed JSON return there. So, it's already serialized.

You can simply do a JavaScript eval() on the returned data.
Alternatively, you can include a JSON parser javascript library like
http://www.json.org/json_parse.js into your code and parse it that
way. The end result of either will be a JavaScript object.

Finally, you can simplify a lot of this stuff with what's built in to CF 8:

http://livedocs.adobe.com/coldfusion/8/htmldocs/ajaxdata_06.html

mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/


2009/2/4 Rick Faircloth <[email protected]>:
>
> Not to overly dramatic, but, I think my head really is
> about to explode.  I know my blood pressure is sky high!
> I'm going to conquer this stuff or die trying! (Probably
> will kill me...)
>
> Anyway, I'm trying to return data from a method involving
> 2 queries of data and some random data via ajax. [snip]

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318825
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to