【发布时间】:2011-10-05 00:14:27
【问题描述】:
我想解析像这样进来的 JSON 数据:
{
"212315952136472": {
"id": "212315952136472",
"name": "Ready",
"picture": "http://profile.ak.fbcdn.net/hprofile-ak-snc4/195762_212315952136472_4343686_s.jpg",
"link": "http://www.hityashit.com/movie/ready",
"likes": 5,
"category": "Movie",
"description": "Check out the reviews of Ready on http://www.hityashit.com/movie/ready"
}
}
我使用的代码是:
JSONElement userJson = JSON.parse(jsonResponse)
userJson.data.each {
Urls = it.link
}
但我无法获得分配给Urls 的任何内容。有什么建议吗?
【问题讨论】: