这是我的json字符串
{
"tracking_information": {
"status_name": "Picked",
"status_code": "PCK",
"status_date": "2017-11-12T07:28:01.123272",
"source": "Web",
"status_date_local": "2017-11-12 11:28:01",
"status_description": "Picked up"
},
"order_information": {
"tracking_no": "34120022",
"so_number": "44",
"client_ref": "Test Order"
}
}
这是我的代码
byte[] json_orders = wc.DownloadData(url);
var bytesAsString = Encoding.ASCII.GetString(json_orders);
dynamic jsonObj = JsonConvert.DeserializeObject(bytesAsString);
foreach (var obj in jsonObj.tracking_information)
{
string track_info = obj.Value;
}
obj变量仅包含状态名称值。如何获取状态代码和相关信息。