我有这个 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
有人可以告诉我如何阅读儿童图片的价值吗?
谢谢。