title: How to use angular.toJson on a angular controller or scope
body: <p>Please see my following jsFiddle example where I am trying to push an Angular.js object into a JSon representations using angular.toJson. What I get is just "$SCOPE" as the result. </p>
  
  <blockquote>
    <p><a href="http://jsfiddle.net/K2GsS/12/">http://jsfiddle.net/K2GsS/12/</a></p>
  </blockquote>
  
  <p>What I want to do is get the current properties and values. In this example what I would hope to see is </p>
  
  <pre><code>{ firstName: 'Frank', lastName: 'Williams' }
  </code></pre>
  
  <p>Is there a better way to get at that data in JSon form (ie not using scope)? Obviously I could hand roll a method that takes the values and pushes out a JSon representation but as the controller changes so too would that function so I would rather just call a toJson type method. Anyone know of the proper way to do this? Thanks in advance.</p>