Need help on reaching a particular Object in an Array

<%= @topic_view.topic.title %>
<%= @topic_view.topic.average_rating %> <%= @topic_view.topic.posts.count { |p| !!p.custom_fields['rating'] } %>

Here’s the Array that I’m fetching from an API,

[
{
IND-AN: {
id: "IND-AN",
code: "AN",
name: "Andaman and Nicobar Islands",
tin: 35,
type: "U"
},
IND-AP: {
id: "IND-AP",
code: "AP",
name: "Andhra Pradesh",
tin: 28,
type: "S"
},
IND-AR: {
id: "IND-AR",
code: "AR",
name: "Arunachal Pradesh",
tin: 12,
type: "S"
},
IND-AS: {
id: "IND-AS",
code: "AS",
name: "Assam",
tin: 18,
type: "S"
}
}
]

as you can see here each Object has a unique Id of its own.

My challenge is to reach the Name attribute and print them in a html dropdown menu.

Please anybody help me.

Or

But the first option is normally better