Pass AS objects to Director?

I know that I can call a shockwave function from flash, using the lingo prefix, but am I limited to what I can send, or will AS objects keep their structure when passed to director?

eg, would this work:

[AS]
var room:Object = { name:“lobby”, id:22, type:“regular” }

getURL( “lingo:setRoom(” + room + “)” );
[/AS]