json转换成实体类
//将获取到的json格式数据转换成对应的实体类 JsonSerializer serializer = new JsonSerializer(); StringReader sr = new StringReader(“json”); object o = serializer.Deserialize(new JsonTextReader(sr), typeof(List<DiffDataNoListModel>)); List<DiffDataNoListModel> listno = o as List<DiffDataNoListModel>;