Newtonsoft.Json使用

 SkuBean sb = (SkuBean)Newtonsoft.Json.JsonConvert.DeserializeObject(jobj.ToString(), typeof(SkuBean));

string json = Newtonsoft.Json.JsonConvert.SerializeObject(list);
//string json = JsonFormatter<List<AuthlogBean>>.Serialize(list);
json = json.Replace("{", "((").Replace("}", "))").Replace(']', ')').Replace('[', '(').Replace("\r\n", "");

其实很很简单 要建一个*Down实体 就可以了

posted @ 2015-07-21 17:07  pengde  阅读(159)  评论(0编辑  收藏  举报