protected void Page_Load(object sender, EventArgs e)
 {
     var json = "{ DOB: { Date: 30,Month: 4,Year:1988},FirstName: \"Kannadasan\",LastName: \"Govindasamy\",Department: \"Development\",Designation:\"Tech Lead\"}";
     Employee empObj = new Employee();
     empObj = new JavaScriptSerializer().Deserialize<Employee>(json);
     if (empObj != null)
     {
         lblFirstName.Text = empObj.FirstName;
         lblLastName.Text = empObj.LastName;
         lblDepartment.Text = empObj.Department;
         lblDesignation.Text = empObj.Designation;
         lblDateOfBirth.Text = empObj.DOB.Date + "/" + empObj.DOB.Month + "/" + empObj.DOB.Year;
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     // Creating Instance(object) of employee class
     Employee empObj = new Employee();
     
     // Assinging values to employee object
     empObj.FirstName = "Kannadasan";
     empObj.LastName = "Govindasamy";
     empObj.Designation = "Tech Lead"; ;
     empObj.Department = "Development";
     empObj.DOB.Date = 30;
     empObj.DOB.Month = 4;
     empObj.DOB.Year = 1988;
     
     // Serialize Employee Object
     var json = new JavaScriptSerializer().Serialize(empObj);
     Response.Write(json.ToString());
 }