I am trying to retrieve and parse data from API. I this case I get from API request Email details and I need to put to variable some content. The issue is that key is randomly generated but always is the same place.
var mainContent = Platform.Function.ParseJSON(response)['views']['html']['slots']['main']['blocks']['4b1qpkijj8x']['content']
Unfortunately puting [0] in place of '4b1qpkijj8x' doesn't work.
var mainContent = Platform.Function.ParseJSON(response)['views']['html']['slots']['main']['blocks'][0]['content']
How can I manage it?

Maybe you could use
Object.keys()like