I am having trouble parsing JSON with multiple output rows. I use a "for each" and I can get see the individual JSON records come through while testing the flow but I don't seem to be able to reference the actual data from a compose in the "for each". Below is the JSON input I am trying to parse each employee row for. It's inside a simple initialize variable of type OBJECT. It must be an object because I am using this only to simulate a API sending JSON data which must be an object. I could make the variable a array or string but that defeats the purpose of this example.
{
"title": "aces_export_test",
"fields": [
{
"id": "employeeNumber",
"type": "employee_number",
"name": "reference_number"
},
{
"id": "workEmail",
"type": "email",
"name": "email"
},
{
"id": "firstName",
"type": "text",
"name": "first_name"
},
{
"id": "lastName",
"type": "text",
"name": "last_name"
},
{
"id": "gender",
"type": "gender",
"name": "gender"
},
{
"id": "supervisorId",
"type": "text",
"name": "approver"
},
{
"id": "terminationDate",
"type": "date",
"name": "leaving_date"
},
{
"id": "department",
"type": "list",
"name": "department"
},
{
"id": "division",
"type": "list",
"name": "division"
},
{
"id": "jobTitle",
"type": "list",
"name": "job_title"
},
{
"id": "preferredName",
"type": "text",
"name": "preferred_name"
}
],
"employees": [
{
"id": "100",
"employeeNumber": "1234",
"workEmail": "tom@aol.com",
"firstName": "David",
"lastName": "Tom",
"gender": "Male",
"supervisorId": null,
"terminationDate": "0000-00-00",
"department": "MailOrder",
"division": "Sales",
"jobTitle": "Sr Sales Assoc",
"preferredName": "Tommy"
},
{
"id": "200",
"employeeNumber": "1235",
"workEmail": "ted@aol.com",
"firstName": "Paul",
"lastName": "Ted",
"gender": "Male",
"supervisorId": null,
"terminationDate": "0000-00-00",
"department": "MailOrder",
"division": "Sales",
"jobTitle": "Sr Sales Assoc",
"preferredName": "Pablo"
},
{
"id": "300",
"employeeNumber": "1236",
"workEmail": "bad@aol.com",
"firstName": "Sally",
"lastName": "Smith",
"gender": "Female",
"supervisorId": null,
"terminationDate": "0000-00-00",
"department": "MailOrder",
"division": "Marketing",
"jobTitle": "Principal",
"preferredName": "Salamanca"
}
]
}
Here is my flow I am trying to use to consume data:

The String above is one of many different attempts to extract the data that failed. I was hoping that I could see the fields from output in the select flow but it won't show them to me.
Any help would be appreciated. I would be happy to upload the flow itself it that is possible?
Thanks,
Paul