I have an array that outputs as below (using console.log):
["{"Heading":"EmployeeNumber","Type":"Text"}",
"{"Heading":"First Name","Type":"Text"}",
"{"Heading":"Last Name","Type":"Text"}",
"{"Heading":"Payroll","Type":"Text"}",
"{"Heading":"MonthlyEmployeeCost","Type":"Text"}",
"{"Heading":"MonthlyEmployerCost","Type":"Text"}",
"{"Heading":"Benefit","Type":"Text"}", "{"Heading":"DOB","Type":"Text"}"]
I would like to retrieve the value for each Type within the array. So in the example above I would expect "Text"
to pull through for each Type
.
Please can someone clarify how this is done?