I recently had to do something similar when trying to display the Parent Page’s title. I think it’ll help you
$parentID = $wp_query->post->post_parent;
$parent_post = get_post($parentID);
$parent_title = $parent_post->post_title;
You will have to access your array obviously. Hope that helps!