You can do implicit array and structure creation in ColdFusion since v8.
<cfset myArr = []>
<cfset myStruct = {}>
Only on CF 9 however can you do this
<cfset myArr = []>
<cfset ArrayAppend( myArr, {} )>
-----Original Message-----
From: Glyn Jackson [mailto:[email protected]]
Sent: Wednesday, June 30, 2010 10:18 AM
To: cf-talk
Subject: Re: JSON response need a little help
simply things! thanks that is something I missed yes. one last thing looking
at what they want back it seems that 'hotspots' needs to be an array can you
do implicit Arrays in CF like this would this not give me an error?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334960
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm