I am working with an array:
results = [
{"Created Date ": "20181012", "Created By ": "A", "Job Number ": "001", "Department": "FS"},
{"Created Date ": "20181012", "Created By ": "B", "Job Number ": "002", "Department": "DS"},
{"Created Date ": "20181012", "Created By ": "C", "Job Number ": "004", "Department": "FS"}
]
The values in the array might look like this sometimes (column order changed and no blank characters, but column names remain consistent):
results = [
{"Created By": "A", "Department": "FS", "Created Date": "20181012", "Job Number": "001" },
{"Created By": "B", "Department": "DS", "Created Date": "20181012", "Job Number": "002"},
{"Created By": "C", "Department": "FS", "Created Date": "20181012", "Job Number": "004"}
]
Now, I want to extract a new array that includes only the values of three specific columns - "Created By", "Created Date", and "Job Number", in a specific order. The resulting array should look like this:
results = [
{"20181012", "A", "001"},
{"20181012", "B", "002"},
{"20181012", "C", "004"}
]
Do you have any suggestions on how to achieve this?