【发布时间】:2014-12-11 05:39:55
【问题描述】:
首先,我不是程序员,而是平面设计师,我一个人很难解决这个问题。
我需要的是从该 URL https://api.lottotech.com/api/v1/345/UpcommingDraws 获取 "lotteryId":"3" 中的 estimatedJackpotLC 并将其解析为闪光临 CC。我正在使用 AS3 和 Flash Player 11(我听说它们原生支持 JSON 解析?)。怎么做?非常感谢您的帮助。
这是 JSON 数据:
{ "totalCount": 0,
"items": [{
"lotteryId": 3,
"drawId": 303,
"estimatedJackpotLC": 60000000.0,
"endsOn": "2014-12-10T22:00:00Z"
},
{
"lotteryId": 2,
"drawId": 326,
"estimatedJackpotLC": 10000000.0,
"endsOn": "2014-12-12T13:00:00Z"
},
{
"lotteryId": 1,
"drawId": 331,
"estimatedJackpotLC": 31000000.0,
"endsOn": "2014-12-12T14:00:00Z"
},
{
"lotteryId": 4,
"drawId": 336,
"estimatedJackpotLC": 102000000.0,
"endsOn": "2014-12-12T22:00:00Z"
},
{
"lotteryId": 5,
"drawId": 367,
"estimatedJackpotLC": 14400000.0,
"endsOn": "2014-12-11T15:00:00Z"
},
{
"lotteryId": 7,
"drawId": 387,
"estimatedJackpotLC": 12200000.0,
"endsOn": "2014-12-14T16:30:00Z"
}]}
提前致谢!
【问题讨论】:
-
最好将您尝试解析的内容的示例直接粘贴到问题中——我无法访问该 URL,而且看起来也有点可疑。
-
您好,我已经用其中的 json 数据编辑了我的问题。
标签: json actionscript-3 flash