'Best way to translate variables in a json array

I have a Microsoft Form (customer facing), that has several fields with values such as UK/Europe. Ultimately within Power Automate, I need the value as "uksouth" for example. I know I could initialize a variable and use if statements to swap them, but that is cumbersome and would make expanding the list later on more difficult.

Not a programmer/developer, and just starting to explore JSON, variable manipulation, etc.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source