Jochem van Dieten 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#]')#" />
>
> Jochem
>
>
Thanks so much for that info! I knew that if you guys took a look at
the output it would be something recognizable.
Right when you mentioned JSON, I remembered seeing that word used here
and there. This makes things MUCH easier to deal with - rock on!
Thanks!
Mike
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:317263
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4