c# Dictionary<string, object> 转JSON字符串

 

    JavaScriptSerializer jss = new JavaScriptSerializer();
    Dictionary<string, object> dict = new Dictionary<string, object>();
     string strDATAJSON = "";


            dict.Add("AA", "00");
            dict.Add("BB", "00");
            dict.Add("CC", "E");
            dict.Add("DD", "ERE:" );
            strDATAJSON = jss.Serialize(dict) ;

  

posted @ 2019-08-03 10:42  一叶孤城  阅读(9037)  评论(0编辑  收藏  举报