【发布时间】:2016-10-28 08:24:15
【问题描述】:
所以我调用 LinkedIn API 来获取个人资料数据并检索 JSON。
{
"firstName": "Cristian Viorel",
"headline": ".NET Developer",
"location": {
"country": {"code": "dk"},
"name": "Northern Region, Denmark"
},
"pictureUrls": {
"_total": 1,
"values": ["https://media.licdn.com/mpr/mprx/0_PXALDpO4eCHpt5z..."]
}
}
我可以使用 student.firstname、student.headline。如何获取位置的名称或 pictureUrl 的值? 像 student.location.name 或 student.pictureUrls.values 之类的东西?
【问题讨论】:
-
你的建议试过了吗?