http://union.suning.com/aas/open/vistorAd.action?userId=124924&webSiteId=12164&adInfoId=6494&adBookId=48681&subUserEx=155412&vistURL=http://www.suning.com

C#json转换成字典类型

 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);
            }

  

posted @ 2017-06-06 11:35  .netpjava  阅读(7712)  评论(0编辑  收藏  举报