/** * 将map序列化为json字符串 * * @param params 参数 * @return json字符串 */ public static string DicToJson(Dictionary <string, object> dicParams) { return(JsonUtils.DicToJson(dicParams)); }
/// <summary> /// 将json字符串反序列化为map /// </summary> /// <param name="json"></param> /// <returns></returns> public static Dictionary <string, object> JsonToDic(string json) { return(JsonUtils.JsonStrToDic(json)); }