所以我打電話LinkedIn API來獲取配置文件數據並檢索JSON。從嵌套的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?
你試過你的建議? –