I have an array which comes out as:

[
  'base' => 'EUR',
  'rates' => [
    'AUD' => 1.552,
    'BGN' => 1.955,
    'BRL' => 1.533
  ]
]

In my statamic template I have:

    {{ exchange }}
        {{ base }}
        {{ date }}

        {{ rates }}
            {{ value }}
        {{ /rates }}
    {{ /exchange }}

But I cannot for the life of my get the key => value of the rates array, is this possible?

I've tried $this->parseLoop() which gives an Illegal string offset 'first' and couldn't figure out from looking through the source/docs how you do this.

Any help would be awesome, thank you!

p.s this is from the context of an addon