Worked great, thanks. I needed to use the contents of a php query from an xmlhttp request to populate a select box. I created a string with all of the select values and option names, then used eval to create an object.
I don't really like sending syntax specific data from php and would rather send a pure data structure, if that makes sense.