title: AngularJS log JSON
body: <p>Is there a way to output JSON response that is coming from the server? I am trying the following, with undesirable output:</p>
  
  <pre><code>$http({ method: 'GET', url: 'getUser' })
          .success(function (data,status) {
              $scope.user = data;
              console.log("User="+data);})
          .error(function (data,status) {
              $scope.status = status;
              if(status==403)
                  $location.path( "/" );
          });
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>User=[object Object] 
  </code></pre>