diff --git a/WcfControlMonitorLib/SampleModule.cs b/WcfControlMonitorLib/SampleModule.cs index 2d71c95..6272fbe 100644 --- a/WcfControlMonitorLib/SampleModule.cs +++ b/WcfControlMonitorLib/SampleModule.cs @@ -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(jsonStr); //Dictionary json = JsonConvert.DeserializeObject>(jsonStr); - WCS_STORAGE jsonObject = JsonConvert.DeserializeObject(jsonStr); + // 定义一个 JSON 键值对对象 //Dictionary jsonObject1 = new Dictionary(); //// 添加键值对,品种1.2.3.4.5 db区及设备号 @@ -134,7 +135,6 @@ namespace WcfControlMonitorLib } - public class WCS_STORAGE { public List storage { get; set; }