As you can see d has a key “orders” that is an array of dictionaries but shows up as a generic Object… i really would like to interate all the dictionaries inside but i do not know how to reach them, i tried different assignations but i mostly get an IllegalCastException
Once JSON is parsed, it can only be one of two structures: a Dictionary or a Variant array. Within each of those can be values like boolean or integer, but even those are stored as Variant.
So in your case:
var d as Dictionary = ParseJSON( myJSON )
var orders() as variant = d.Value( "orders" )
for each order as Dictionary in orders // casting the Variant to Dictionary
// process an order
next