JSON转Dictionary

时间:2021-01-15 16:10:09

方法很简单,留作以后使用。

System.Web.Script.Serialization.JavaScriptSerializer serializer = new System.Web.Script.Serialization.JavaScriptSerializer();
return serializer.Deserialize<Dictionary<string, string>>(txtParams);