using System.Collections.Generic;
public static void Main()
""FacilityOrderID"": """",
""PermPlacement"": false,
""ShiftDate"": ""08/05/2019"",
""StartTime"": ""08:00:00"",
""EndTime"": ""17:00:00"",
""Con_StartDate"": ""08/05/2019"",
""Con_EndDate"": ""02/01/2020"",
""LastModified"": ""2020-01-04 17:11:45"",
""CreatedDate"": ""2019-06-17 13:39:00"",
""FacilityName"": ""Carilion Roanoke Memorial Hospital"",
""ScheduledRegName"": """",
""ClassDesc"": ""Rad Tech Specialty 2"",
""AreaName"": ""Cardiology Clinic Outpatient"",
""LockReason"": ""Position is filled, awaiting credentials"",
""Note"": ""Registered Echo Sonographer. 8 or 9 hours per day, 40 hours per week. Vascular experience helpful."",
""ContractPattern"": ""Sun, Mon, Tue, Wed, Thu, Fri, Sat"",
var obj = JsonConvert.DeserializeObject<RootObject>(content);
var allOrders = obj.d.data.Orders;
Console.WriteLine(allOrders.Count());
Console.WriteLine(allOrders.FirstOrDefault().OrderID);
public int OrderID { get; set; }
public int FacilityID { get; set; }
public string FacilityOrderID { get; set; }
public string StatusID { get; set; }
public bool Contract { get; set; }
public bool PermPlacement { get; set; }
public string ShiftDate { get; set; }
public string StartTime { get; set; }
public string EndTime { get; set; }
public int Meals { get; set; }
public string Con_StartDate { get; set; }
public string Con_EndDate { get; set; }
public bool Locked { get; set; }
public string LastModified { get; set; }
public string CreatedDate { get; set; }
public string FacilityName { get; set; }
public int ScheduledRegID { get; set; }
public string ScheduledRegName { get; set; }
public string ClassName { get; set; }
public string ClassDesc { get; set; }
public string AltClassName { get; set; }
public string AltClassDesc { get; set; }
public string CodeName { get; set; }
public int ShiftNumber { get; set; }
public int AreaID { get; set; }
public string AreaName { get; set; }
public string AreaAddress1 { get; set; }
public string AreaAddress2 { get; set; }
public string AreaCity { get; set; }
public string AreaCounty { get; set; }
public string AreaState { get; set; }
public string AreaZip { get; set; }
public string LockReason { get; set; }
public string CancelReason { get; set; }
public string Note { get; set; }
public bool IsTraveler { get; set; }
public int Rate { get; set; }
public string ContractPattern { get; set; }
public int Con_Guarantee { get; set; }
public int Con_Weeks { get; set; }
public List<Order> Orders { get; set; }
public bool success { get; set; }
public object errorMessage { get; set; }
public Data data { get; set; }