That's relatively accurate, yes.
However, since it seems you are actually generating the structure at
compile time, I seriously wonder where the element of uncertainty
comes from. Avoid dynamic magic like the plague. It's just a matter of
habit. And it's a habit that greatly pays off in the long run. Trust
me.
You can of course always do something like this:
http://try.haxe.org/#6B3f4
That'll allow you to traverse a Map/Object/Array structure just with
`[ ]` access.
But please understand that this is just a very smart way to shoot
yourself in the foot very badly ;)
Best,
Juraj