<?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: CF8 Structure Literal Gotcha</title>
	<atom:link href="http://www.barneyb.com/barneyblog/2007/10/15/cf8-structure-literal-gotcha/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.barneyb.com/barneyblog/2007/10/15/cf8-structure-literal-gotcha/</link>
	<description>Thoughts, rants, and even some code from the mind of Barney Boisvert.</description>
	<lastBuildDate>Thu, 11 Sep 2014 09:58:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: barneyb</title>
		<link>https://www.barneyb.com/barneyblog/2007/10/15/cf8-structure-literal-gotcha/comment-page-1/#comment-43172</link>
		<dc:creator>barneyb</dc:creator>
		<pubDate>Wed, 17 Oct 2007 18:00:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/2007/10/15/cf8-structure-literal-gotcha/#comment-43172</guid>
		<description>Tanguyr,

Of course.  You can pass arbitrarily nested objects back up to CF, and I believe cyclic graphs are supported in both directions.  Within the JS runtime, you&#039;ve got the full scope of JS&#039;s syntax.

If you&#039;re nested object is entirely comprised of primitives, you can use CFSAVECONTENT and deserializeJson() UDF to synthesize arbitrary nesting.  Just throw a JSON string into the CFSAVECONTENT and then deserialize it.  Not very elegant, but at least it works.</description>
		<content:encoded><![CDATA[<p>Tanguyr,</p>
<p>Of course.  You can pass arbitrarily nested objects back up to CF, and I believe cyclic graphs are supported in both directions.  Within the JS runtime, you've got the full scope of JS's syntax.</p>
<p>If you're nested object is entirely comprised of primitives, you can use CFSAVECONTENT and deserializeJson() UDF to synthesize arbitrary nesting.  Just throw a JSON string into the CFSAVECONTENT and then deserialize it.  Not very elegant, but at least it works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Wilson</title>
		<link>https://www.barneyb.com/barneyblog/2007/10/15/cf8-structure-literal-gotcha/comment-page-1/#comment-43124</link>
		<dc:creator>Dan Wilson</dc:creator>
		<pubDate>Wed, 17 Oct 2007 12:08:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/2007/10/15/cf8-structure-literal-gotcha/#comment-43124</guid>
		<description>I imagine Adobe also realizes the uselessness of the feature without nesting. After all, plenty of programmers work on the CF team. Certainly they use complex data structures.

I am looking for this to be fixed in a point release.</description>
		<content:encoded><![CDATA[<p>I imagine Adobe also realizes the uselessness of the feature without nesting. After all, plenty of programmers work on the CF team. Certainly they use complex data structures.</p>
<p>I am looking for this to be fixed in a point release.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tanguyr</title>
		<link>https://www.barneyb.com/barneyblog/2007/10/15/cf8-structure-literal-gotcha/comment-page-1/#comment-43104</link>
		<dc:creator>tanguyr</dc:creator>
		<pubDate>Wed, 17 Oct 2007 10:06:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/2007/10/15/cf8-structure-literal-gotcha/#comment-43104</guid>
		<description>Hello Barney,

Can you create a nested struct-equivalent in server side javascript and pass it back to the cf layer?

Regs,
/t</description>
		<content:encoded><![CDATA[<p>Hello Barney,</p>
<p>Can you create a nested struct-equivalent in server side javascript and pass it back to the cf layer?</p>
<p>Regs,<br />
/t</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Rinehart</title>
		<link>https://www.barneyb.com/barneyblog/2007/10/15/cf8-structure-literal-gotcha/comment-page-1/#comment-42936</link>
		<dc:creator>Joe Rinehart</dc:creator>
		<pubDate>Tue, 16 Oct 2007 18:41:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/2007/10/15/cf8-structure-literal-gotcha/#comment-42936</guid>
		<description>Sort of a useless comment, but I have to say...no nesting?  WTF?</description>
		<content:encoded><![CDATA[<p>Sort of a useless comment, but I have to say&#8230;no nesting?  WTF?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Phillips</title>
		<link>https://www.barneyb.com/barneyblog/2007/10/15/cf8-structure-literal-gotcha/comment-page-1/#comment-42925</link>
		<dc:creator>Chris Phillips</dc:creator>
		<pubDate>Tue, 16 Oct 2007 17:51:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/2007/10/15/cf8-structure-literal-gotcha/#comment-42925</guid>
		<description>I completely agree that they are crippled to near worthlessness.

If I can&#039;t use them like the following, then what&#039;s the point?

Struct = {&#039;StructNotationInCF&#039;:{&#039;HasTheFollowingProperties&#039;:[&quot;Can&#039;t be nested&quot;,&quot;Can&#039;t be used as function parameters&quot;,&quot;Really can&#039;t do much&quot;]}};</description>
		<content:encoded><![CDATA[<p>I completely agree that they are crippled to near worthlessness.</p>
<p>If I can't use them like the following, then what's the point?</p>
<p>Struct = {'StructNotationInCF':{'HasTheFollowingProperties':["Can't be nested","Can't be used as function parameters","Really can't do much"]}};</p>
]]></content:encoded>
	</item>
</channel>
</rss>
