我有这个json输出:
{
"status": "SUCCESS",
"candidates": [
{
"race": "KENYA",
"candidates": [
{
"picture": “http: //api.iebc.or.ke/images/candidate/5FFCD75B-A067-E211-8158-00505687000D.jpg”
}
]
}
]
}
我可以在反序列化时读取状态。但是,我也需要读取内在值,即种族,候选人,图片值。
Dim myWebClient As New Net.WebClient()
Dim responseArray As Byte() = myWebClient.DownloadData(iebcsite)
json = System.Text.Encoding.ASCII.GetString(responseArray)
Dim deserializedProduct As Object = JsonConvert.DeserializeObject(Of Object)(json)
Response.Write(deserializedProduct)
obj = JsonConvert.DeserializeObject(json)
Uptime = obj.Item("status").ToString
有人可以告诉我如何阅读儿童图片的价值吗?
感谢。