屬性我有一個類似的大型JSON文件:分析和提取從JSON
{
"data":[
{
"attribution":null,
"tags":[
"thenight2"
],
"type":"image",
"images":{
"standard_resolution":{
"url":"http://distilleryimage3.s3.amazonaws.com/59d6984092a211e392db12e25f465f4f_8.jpg",
"width":640,
"height":640
}
}
},
{
"attribution":null,
"tags":[
"thenight2"
],
"type":"image",
"images":{
"low_resolution":{
"url":"http://distilleryimage1.s3.amazonaws.com/c179b34a91ff11e3b99c0aa73e1070c5_6.jpg",
"width":306,
"height":306
},
"thumbnail":{
"url":"http://distilleryimage1.s3.amazonaws.com/c179b34a91ff11e3b99c0aa73e1070c5_5.jpg",
"width":150,
"height":150
},
"standard_resolution":{
"url":"http://distilleryimage1.s3.amazonaws.com/c179b34a91ff11e3b99c0aa73e1070c5_8.jpg",
"width":640,
"height":640
}
},
"users_in_photo":[
]
}
]
}
我想從所有url
屬性值的列表,從內所有圖像的standard_resolution
屬性提取JSON。如何做呢?
使用[JSON.Net](http://james.newtonking.com/json) –
可以使用'JToken變量= JToken.Parse(數據);''然後將Varible'成爲一個'數組' –