Object to Array

I have 2 query in my API.
The first API will return results in object
{'id':1,'id':2,'id':3}

how can I turn these into an array so that I can use it on my next query to exclude? I assume I need to use subpath, but I can't loop each with something like results.*.id
Working with APIs
8 replies