|
|
@ -66,10 +66,11 @@ namespace WcfControlMonitorLib |
|
|
|
byte[] data = new byte[length]; |
|
|
|
body.Read(data, 0, length); |
|
|
|
string jsonStr = Encoding.UTF8.GetString(data); |
|
|
|
|
|
|
|
//JObject json = JsonConvert.DeserializeObject<JObject>(jsonStr);
|
|
|
|
//Dictionary<string, object> json = JsonConvert.DeserializeObject<Dictionary<string, object>>(jsonStr);
|
|
|
|
|
|
|
|
WCS_STORAGE jsonObject = JsonConvert.DeserializeObject<WCS_STORAGE>(jsonStr); |
|
|
|
|
|
|
|
// 定义一个 JSON 键值对对象
|
|
|
|
//Dictionary<string, object> jsonObject1 = new Dictionary<string, object>();
|
|
|
|
//// 添加键值对,品种1.2.3.4.5 db区及设备号
|
|
|
@ -134,7 +135,6 @@ namespace WcfControlMonitorLib |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public class WCS_STORAGE |
|
|
|
{ |
|
|
|
public List<STORAGE> storage { get; set; } |
|
|
|