How can I store an API call response as an object or parse an array as a JSON?

My app is trying to make an API call and display the data from it in a modal. It isn’t working because I’m storing the response from the API call as an array at the moment, meaning I can’t access the sub-elements of the response.
My questi…