In my data processing task, I have two sets of information. The first set serves as the header data, providing the names of the columns to be displayed.
The second set is the actual data source itself.
My challenge lies in selecting only the data from the JSON file that corresponds to the headers provided in the list.
Here is a snippet of the header data array:
["Execution_Plan_Note", "Budget", "Reporting_Period", "Budget_Note", "Spend_Plan_Note", "Spend_Plan"]
And here is the link to the Actual Data Source: https://i.sstatic.net/rMsSv.png
So, my goal is to create a new object containing only the data that aligns with the headers specified in the array. If anyone has any suggestions on how to achieve this, please let me know. I have exhausted numerous attempts but haven't found a solution yet.