I am trying to use an array of objects to show in a drop down list. Here is the json file
{
"list": [
{
"product": "Test1 ",
"Name": "Test 1 Name",
"countries": [{"countryId": 53,"countryName": "Unites States"}]
},
{
"product": "Test 2",
"Name": "Test 2 Name",
"countries": [{"countryId": 54,"countryName": "Canada"}]
}
]
}
I would like to show a drop down that list the countries using the countryName to show in the dropdown and use countryId as value.