/// <summary>
        /// json格式转换(引用System.Web.Extension类库)
        /// </summary>
        /// <param name="json"></param>
        /// <returns></returns>
        public static T ChangeJsonToModel<T>(this string json)
        {
            var javaScriptSerializer = new JavaScriptSerializer { MaxJsonLength = Int32.MaxValue };

            var printQtyVsOrderQtyReportResult = javaScriptSerializer.Deserialize<T>(json);

            return printQtyVsOrderQtyReportResult;
        }

 

posted on 2016-10-13 15:58  JustYong  阅读(609)  评论(0编辑  收藏  举报