Swati
Swati

Reputation: 57

How to parse node.js REST api object in ActionScript3

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

Answers (1)

Jason Sturges
Jason Sturges

Reputation: 15955

JSON parsing is included in the default package.

var json:Object = JSON.parse("[{\"word\": \"word\"},{\"word\": \"ability\"},{\"word\": \"about\"}]");

json

Default JSON parsing is much higher performance than as3corelib implementation.

Upvotes: 4

Related Questions