Exemple #1
0
        public static string DictStrToJson(Dictionary <string, string> dict_str)
        {
            var serializer = new System.Web.Script.Serialization.JavaScriptSerializer();
            var json       = serializer.Serialize(dict_str);

            return(GenUtils.PrettifyJson(json));
        }