response
is already parsed, you don’t need to parse it again.
If you parse it again it will perform a toString-cast first so you’re parsing
"[object Object]"
which explains the unexpected token o
.
More Related Contents:
- Working with select using AngularJS’s ng-options
- How do I set the value property in AngularJS’ ng-options?
- How to pass parameters using ui-sref in ui-router to controller
- How to set an iframe src attribute from a variable in AngularJS
- AngularJS 1.2 $injector:modulerr
- AngularJS communication between directives
- Issue with Android Hybid app to display remote image with Ionic framework?
- ion-content and ion-footer have different $scope
- What is the purpose of square bracket usage in Angular?
- call function inside $sce.trustAsHtml() string in Angular js
- How to remove an item from an array in AngularJS scope?
- Open multiple links in Chrome at once as new tabs
- Unit-test promise-based code in Angularjs
- Format input value in Angularjs
- Angularjs: understanding a recursive directive
- Suites vs Specs Protractor
- Should we use jQuery with AngularJS? [closed]
- Complex nesting of partials and templates
- AngularJS: ng-selected doesn’t show selected value [duplicate]
- Cannot find module ‘../build/Release/bson’] code: ‘MODULE_NOT_FOUND’ } js-bson: Failed to load c++ bson extension, using pure JS version
- Using array map to filter results with if conditional
- Mocking and Stubbing with protractor
- Run controllers only after initialization is complete in AngularJS
- AngularJS css animation + done callback
- WebSocket connection failed: Error during WebSocket handshake: Unexpected response code: 400
- Two way binding not working in directive with transcluded scope
- angularjs form reset error
- Angular JS – Make service globally accessible from controllers and view
- How do I return data from a $http.get() inside a factory in angularjs
- How to create an Array with AngularJS’s ng-model