I want to use objectToArray without key and value

but i am getting this
wrong

there should be array on top instead of object
Array → object → object

it is not clear what you have and what you need. provide us with an original document, your query, and the result.