title: passing PHP objects to javascript
body: <p>I have objects in php that each represents a "item" and all info associated with it.</p>
  
  <p>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.</p>
  
  <p>However, how do you get an object from php to javascript?</p>