decoding a particular JSON data results to undefined properties

11 views
Skip to first unread message

bob.sa...@gmail.com

unread,
May 13, 2009, 8:58:44 AM5/13/09
to ActionScript 3 Core Library
Hi all! I'm kind of stuck here..

Here is a link for the JSON I want to parse: http://pastebin.com/m3937d99a

And here is part of my code concerning the parsing:

var loader:URLLoader = URLLoader(event.target);
var tickerData:Array = JSON.decode(loader.data);

but when I try to trace tickerData[0].securitySymbol it results to
undefined.

Regards,

Bob

bob.sa...@gmail.com

unread,
May 14, 2009, 9:57:00 PM5/14/09
to ActionScript 3 Core Library
Hi!

I already solved the problem, the problem was the previous data which
was generated by my app has been cached by the browser which in turn
does not match the attribute names that I was expecting. Tracing
loader.data gave me the hint.

On May 13, 8:58 pm, "bob.santo...@gmail.com" <bob.santo...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages