开发者

JSON Array in Flex

开发者 https://www.devze.com 2023-01-10 23:34 出处:网络
I have code: api_result = \'{\"response\":[开发者_StackOverflow社区{\"uid\":1969258,\"first_name\":\"Walle\",\"last_name\":\"Woo\"}]}\';

I have code:

api_result = '{"response":[开发者_StackOverflow社区{"uid":1969258,"first_name":"Walle","last_name":"Woo"}]}'; 
var myobj:Object = JSON.decode(api_result);

So, how I can get uid, first_name and last_name from "response" array?


var UID:Object = myobj.response[0].uid;

var firstName:Object = myobj.response[0].first_name;

var lastName:Object = myobj.response[0].last_name;
0

精彩评论

暂无评论...
验证码 换一张
取 消