标签:scripts java 解析json 解析 ring value rip 字段 str
/// <summary> /// json字符串转Dictionary /// </summary> /// <param name="json"></param> /// <returns></returns> public static Dictionary<string, object> getValue(string json) { //解析json对象 JavaScriptSerializer serializer = new JavaScriptSerializer(); return (Dictionary<string, object>)serializer.DeserializeObject(json); }
object url;
获取json其中一个值:getValue(payJson).TryGetValue("字段名", out url).ToString()
标签:scripts java 解析json 解析 ring value rip 字段 str
原文地址:http://www.cnblogs.com/mrzhoushare/p/6647350.html