On Mon, Dec 29, 2008 at 11:32 AM, Jochem van Dieten <[email protected]>wrote:
> On Mon, Dec 29, 2008 at 6:42 PM, Charlie Griefer wrote:
> > if you're on CF8, deserializeJSON() should work for each of the entities
> > enclosed in the {}, which would give you a struct.
> > i guess the trick is the looping.
>
> Don't loop, just make it an array by putting [] around it:
>
> <cffile action="read" file="your_import" variable="importData" />
> <cfdump var="#deserializeJSON('[#importData#]')#" />
that's awesome. hadn't even occurred to me.
--
I have failed as much as I have succeeded. But I love my life. I love my
wife. And I wish you my kind of success.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:317233
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4