//读取json文件 var obji = File.ReadAllText(@"E:\test.json"); var resultdata = JsonConvert.DeserializeObject<JsonResult>(obji); IllegalParking dto = new IllegalParking(); dto = resultdata.Data;//解析获取违法数据