Json序列化
作者:互联网
Dictionary<string, string> map数据 = new Dictionary<string, string>();
map数据.Add("诊断结果", "无");
JavaScriptSerializer jss = new JavaScriptSerializer();
string strJSON = jss.Serialize(map数据);
JavaScriptSerializer jss = new JavaScriptSerializer();
Dictionary<string, object> mapData = new Dictionary<string, object>();
mapData = jss.Deserialize<Dictionary<string, object>>(strJosn);
标签:map,mapData,Dictionary,jss,Json,new,JavaScriptSerializer,序列化 来源: https://www.cnblogs.com/QZBOY/p/10797285.html