摘要:
JObject jo = JObject.Parse(result); string[] values = jo.Properties().Select(item => item.Value.ToString()).ToArray(); var retmesg = values[1]; 阅读全文
摘要:
//方法一: DataContractJsonSerializer ser = new DataContractJsonSerializer(typeof(T)); MemoryStream ms = new MemoryStream(); ser.WriteObject(ms, t); strin 阅读全文
摘要:
string menuStr = "";// " 消息内容"; Encoding encode = System.Text.Encoding.GetEncoding("GB2312"); //编码,否则会出现json中文乱码 using (StreamReader sr = new StreamReader(HttpContext.Server.MapPath("/Json/sendmessage 阅读全文