Here is my AJAX call:
$.ajax({ type: 'GET', url: User.baseURL + 'api/users/briefProfile', dataType: 'jsonp', success:function(data,text,xhqr){ //var data = $.parseJSON(data); console.log(data); }, error: function(jqXHR, textStatus, errorThrown) { console.log("ERROR"); }, complete: function(jqXHR, textStatus) { console.log("complete"); } });
Error: Uncaught SyntaxError: Unexpected token :
I get a 200 response in Chrome (last). I get all the content in the response, which is valid JSON. I donβt care that the browser doesnβt parse it correctly, but I would really like to access it in a full callback.
Any idea that a) is causing an error? b) how to get to the returned client side of the content?
source share