Format Array with key as value

I have an array that looks like this:

{
  "AL": "Alabama",
  "AK": "Alaska",
  "AS": "American Samoa",
  "AZ": "Arizona",
  "AR": "Arkansas"
}

And I am trying to use a Select box for a drop down menu.
What expression/function do I use to place the values as ['AL', 'AK', 'AS', 'AZ', 'AR'] and set the labels to ['Alabama', 'Alaska', 'American Samoa', 'Arizona', 'Arkansas'] ?

Thanks

Resolved the issue.

Values:
{{Object.keys(SONAR_GetStates.data)}}

Labels:
{{Object.values(SONAR_GetStates.data)}}

1 Like