Hi, I have the list of objects as an output of the external api and I get structure like this, let's call it api_1
And I need to clean it up to have a list like this:
I was trying to make a loop with api_1 and adding values to an array, but it doesn't work, it sees that loop doesn't work for the structure of api_1, as a result I'm getting an empty array.
What is the correct way to make this? Thank you in advance!