unwanted characters appended to response . JAVA / AngularJS -


i calling web service(api) client side using angularjs

http://localhost:8082/login/api 

in end when debugging code check response, sending response value success (string value) only. when used chrome developer tool see response of above called api, coming

7 ↵success ↵0 ↵ ↵ 

i not able figure out unwanted characters getting appended response string.

any appreciated .

thanks

try stringify response in whatever format working on. e.g

 console.log(json.stringify(response) + "<-success); 

Comments