I\'m getting a strange behaviour with AngularJS\'s $http and not really understanding how transformResponse works (the docs are a bit light on this one).
Try using resource query method
https://github.com/angular/angular.js/issues/6314