I have a JSON array structured like this:
var region= [{"af":"Africa"},{"as":"Asia"},{"au":"Australia"}]
Within the framework I am using, the values of the above array are accessed in the following way:
{for r in regions}
<option value="${r}" >${r}</option>
{/for}
I attempted to use JavaScript but was unsuccessful. I am looking for assistance with achieving the desired output as shown above.
Please help me out with this.