iterate over array

I can not for the life of me figure out how to iterate over this array

{
	'name1' =>	{
				'a' =>	[
						'one',
						'two',
					].
				'b' =>	[
						'three',
						'four',
					]
			},
	'name2' =>	{
				'a' =>	[
						'one',
						'two',
					].
				'b' =>	[
						'three',
						'four',
					]
			}
}

I want a for loop to iterate through the first element (name1 and name2 in my example) but I can't figure it out. Help please?

Which shell dialect?

Bash afaik has no iterate-over-everything construct like e.g. foreach in perl.

ksh88 but i think i found a solution. working on it right now....