hotspot data array

Is there anyway of getting an array to print for the host data in hotspot?

something like this for example.

:foreach i in=[/ip hotspot host find] do={
:local mac [/ip hotspot host get $i mac-address]
:local data_down [/ip hotspot host get $i byte-out]

:global rr { “mac”=$mac; “location”=$data_down}

}

/tool fetch url=“http://URL/array.php?data=$rr