{"action":"closed","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/12025","labels_url":"https://api.github.com/repos/angular/angular.js/issues/12025/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/12025/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/12025/events","html_url":"https://github.com/angular/angular.js/issues/12025","id":84995933,"number":12025,"title":"Problem in parsing valid JSON responses","user":{"login":"mmnaseri","id":543672,"avatar_url":"https://avatars.githubusercontent.com/u/543672?v=3","gravatar_id":"","url":"https://api.github.com/users/mmnaseri","html_url":"https://github.com/mmnaseri","followers_url":"https://api.github.com/users/mmnaseri/followers","following_url":"https://api.github.com/users/mmnaseri/following{/other_user}","gists_url":"https://api.github.com/users/mmnaseri/gists{/gist_id}","starred_url":"https://api.github.com/users/mmnaseri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmnaseri/subscriptions","organizations_url":"https://api.github.com/users/mmnaseri/orgs","repos_url":"https://api.github.com/users/mmnaseri/repos","events_url":"https://api.github.com/users/mmnaseri/events{/privacy}","received_events_url":"https://api.github.com/users/mmnaseri/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-04T09:09:28Z","updated_at":"2015-06-04T09:13:36Z","closed_at":"2015-06-04T09:13:36Z","body":"I have this piece of code:\r\n    \r\n        $http.get('/entities/').then(function (response) {\r\n            $scope.entities = response.data;\r\n        });\r\n\r\nwherein `/entities/` returns the following:\r\n\r\n    [{\r\n        \"id\": \"2a7305fc-432e-4c30-9060-be54a4f473dd\",\r\n        \"status\": \"WAITING\"\r\n    }]\r\n\r\nand I get the following error:\r\n  > SyntaxError: Unexpected token a\r\n\r\nThis is happening with the following call stack trace:\r\n\r\n>  * Object.parse (native)\r\n>  * fromJson (angular.js:1072)\r\n>  * defaultHttpResponseTransform (angular.js:8619)\r\n>  * (angular.js:87045)\r\n>  * forEach (angular.js:323)\r\n>  * transformData (angular.js:8703)\r\n>  * transformResponse (angular.js:9429)\r\n>  * processQueue (angular.js:13249)\r\n>  * (angular.js:13265)\r\n>  * Scope.$get.Scope.$eval (angular.js:14467)\r\n\r\nI am using AngularJS 1.4.1 in conjunction with some Bootstrap and jQuery JavaScript. Nothing else is in the project, and I can't see anything illegitimate with the returned JSON object, therefore  I assume this to be a bug somewhere in the AngularJS code. My module only depends on `ngRoute`."}}