API Workflow to Return Two Things in Array

Hi,

I’m looking to create an API workflow that will return a list of one “key”, with two criteria. I can setup 2 different and return the data in two different arrays, but I’m looking to join them together under one key.

For example, Do a search for X and include Y (X and Y are fields of the same type).

The value returned from the API workflow would look something like:

“Array”: [
{
“Name”: “James”,
“ID”: “12345”
},
{
“Name”: “John”,
“ID”: “58445”
},
{
“Name”: “Joe”,
“ID”: “85048”
}
]

Thanks!