title: Ember model to json
body: <p>I am looking for an efficient way to translate my Ember object to a json string, to use it in a websocket message below</p>
  
  <pre><code>/*
   * Model
   */
  
  App.node = Ember.Object.extend({
    name: 'theName',
    type: 'theType',
    value: 'theValue',
  })
  </code></pre>
  
  <p>The websocket method:</p>
  
  <pre><code>App.io.emit('node', {node: hash}); 
  </code></pre>
  
  <p>hash should be the json representation of the node. {name: thename, type: theType, ..}
  There must be a fast onliner to do this.. I dont want to do it manualy since i have many attributes and they are likely to change.. </p>