标签:har dict json pre string item rod key lin
string ProductDetails = "{\"size\":\"10\", \"weight\":\"10kg\"}"; Dictionary<string, string> ProductDetailList= JsonConvert.DeserializeObject<Dictionary<string, string>>(ProductDetails); foreach (var item in ProductDetailList) { Console.WriteLine(item.Key + " " + item.Value); }
标签:har dict json pre string item rod key lin
原文地址:http://www.cnblogs.com/lushixiong/p/6950701.html