title: angular.toJson/JSON.stringify values incorrect?
body: <p>I have an object attached to a <code>$scope</code> that I want to serialize into JSON. The object has been setup with data binding so there are input fields using <code>ng-model</code> and what not. When attempting to call <code>angular.toJson</code>, the values aren't up to date.</p>
  
  <p>The strange thing is that I figured my values weren't being updated like I thought. So I threw in some <code>console.log</code> calls for simplicity yet the values from <code>console.log</code> are correct yet they aren't for the JSON conversion? I tested it with <code>JSON.stringify</code> as well but the results were the same. Code:</p>
  
  <pre><code>// This looks fine
  console.log('Data:', $scope.obj);
  var temp = angular.toJson($scope.obj);
  // This looks fine as well...
  console.log('Data:', $scope.obj);
  // Yet the JSON string isn't correct and contains old data?
  console.log('Data:', temp);
  </code></pre>
  
  <p>Is this an Angular issue that I'm over looking that has to do with data binding? Or is something else going on?</p>