using System.Runtime.Serialization;
using System.Globalization;
public static void Main()
string myJsonResponse = "{\"ebsClosedProjectsOut\":{\"controlArea\":{\"partnerCode\":\"TSMT\",\"instanceName\":\"EBSDEV\",\"sourceSystemName\":\"ORACLE\",\"r12Guid\":\"122c9d30-dd3f-4be0-a78f-fe58b1c156dd\",\"eventType\":\"XXPA4567_CLOSED_PROJECT_OUT\"},\"dataArea\":{\"project\":{\"number\":\"US24-F234567\",\"endDate\":\"25-JAN-25\",\"closedDate\":\"23-MAY-24\",\"startDate\":\"26-JAN-24\"}}}}";
var myDeserializedClass = JsonConvert.DeserializeObject<Root>(myJsonResponse);
Console.WriteLine(myDeserializedClass.ebsClosedProjectsOut.dataArea.project.number);
public string partnerCode { get; set; }
public string instanceName { get; set; }
public string sourceSystemName { get; set; }
public string r12Guid { get; set; }
public string eventType { get; set; }
public Project project { get; set; }
public class EbsClosedProjectsOut
public ControlArea controlArea { get; set; }
public DataArea dataArea { get; set; }
public string number { get; set; }
public string endDate { get; set; }
public string closedDate { get; set; }
public string startDate { get; set; }
public EbsClosedProjectsOut ebsClosedProjectsOut { get; set; }