I have objects in php that each represents a "item" and all info associated with it.
And when the user browses the page, these objects should be passed to javascript. Ideally, mirroring the same structure, so I can use Raphael to display each item and its info as separate shapes on my site.
However, how do you get an object from php to javascript?