Why is ngResource modifying saved object to this: g {0: "O", 1: "K", ..} after receiving a response <p>I have a default ngResource defined like this:</p> <pre><code>var Posts = $resource('/posts/'); </code></pre> <p>And after I get one blogpost from my nodejs server like this:</p> <pre><code>$scope.post = Posts.get({_id:query._id}); </code></pre> <p>User makes some changes to it, then I call:</p> <pre><code>$scope.post.$save(); </code></pre> <p>After server returns response code 200, my $scope.post looks like this:</p> <pre><code>g {0: "O", 1: "K", $get: function, $save: function, $query: function, $remove: function, $delete: function} </code></pre> <p>Why? Is there some reason? Should letters "O" and "K" mean that the operation was a success and returned response 200? Would I be able to modify this behaviour without writing my own save method from scratch?</p>