JSFiddle - React, Tailwind, and code Playground

JavaScript

//I want to write a query which will be update the value of the Property ScheduleId and Duration to 0
//1.First we need to find this element which is contained inside of array of "Columns", and "Columns are contained within "Table" ellements.

//Pseudo code: 

//var requestedScheduleId = 22;
//var requestedObj = data.Table.find(x => requestedScheduleId.Equals(x.Columns.ScheduleId) )
//requestedObj.ScheduleId = 0; requestedScheduleId.Duration = 0;

var data = 
{
    "Headers": [
        "A",
        "B",
        "C",
        "D"
    ],
    "Table": [
        {
            "From": {
                "Hours": 8,
                "Minutes": 0,
                "Seconds": 0,
                "Milliseconds": 0,
                "Ticks": 288000000000,
                "Days": 0,
                "TotalDays": 0.3333333333333333,
                "TotalHours": 8,
                "TotalMilliseconds": 28800000,
                "TotalMinutes": 480,
                "TotalSeconds": 28800
            },
            "To": {
                "Hours": 8,
                "Minutes": 5,
                "Seconds": 0,
                "Milliseconds": 0,
                "Ticks": 291000000000,
                "Days": 0,
                "TotalDays": 0.3368055555555555,
                "TotalHours": 8.083333333333332,
                "TotalMilliseconds": 29100000,
                "TotalMinutes": 485,
                "TotalSeconds": 29100
            },
            "Columns": [
                {
                    "BgColor": null,
                    "Colspan": 1,
                    "Rowspan": 1,
                    "Text": null,
                    "Duration": 0,
                    "ScheduleId": 12,
                    "EmployeeId": null,
                    "IsEmployeeRequested": false,
                    "ServiceName": null,
                    "ServiceComplexityName": null,
                    "FromTo": null
                },
                {
                    "BgColor": null,
           ...