I am using the Angular $resource to make requests to my controllers, implemented on a Spring application. When the controller returns just an Integer value, $resource parse
Set isArray: false in the $resource method definition.
isArray: false