title: how to concat two json objects in angularJs
body: <p>I have the following in an angular controller:</p>
  
  <pre><code>var jsonOne = $cookies.get('test');
  // console logs {"domain":"localhost","zip":33333}
  
  var jsonTwo = angular.toJson($scope.formData);
  // console logs {"id":"210","name":"sam"}
  
  var final = $.extend(jsonOne, jsonTwo);
  // console logs [object object]
  </code></pre>
  
  <p>My goal is to get:</p>
  
  <pre><code>var final
  // console logs {"domain":"localhost","zip":33333, "id":"210","name":"sam"}
  </code></pre>
  
  <p>I'm asking under angular because when I try it in a static html document it works fine, but for some reason it wont work in angular. Any ideas?</p>