摘要:
在.net 4.0 下可以使用: //usingSystem.Runtime.Serialization.Json;<summary>解析JSON,仿Javascript风格</summary>publicstaticclassJSON{publicstaticTparse<T>(stringjsonString){using(varms=newMemoryStream(Encoding.UTF8.GetBytes(jsonString))){return(T)newDataContractJsonSerializer(typeof(T)).ReadObje 阅读全文