Reputation: 57
I have node.js REST api, which returns following object
[
{
"word": "word"
},
{
"word": "ability"
},
{
"word": "about"
}
]
Can someone please let me how to parse this object in ActionScript3 SDK4.6
Thanks in Advance!!!
Upvotes: 0
Views: 304
Reputation: 15955
JSON parsing is included in the default package.
var json:Object = JSON.parse("[{\"word\": \"word\"},{\"word\": \"ability\"},{\"word\": \"about\"}]");
Default JSON parsing is much higher performance than as3corelib implementation.
Upvotes: 4