Uncaught SyntaxError: Unexpected token :
I have a JSONP request like:
$.ajax({
type: 'GET',
dataType: 'jsonp',
accepts: 'application/json',
callback: 'callback',
done: function (result) {
console.log('Success');
console.log(result);
},
error: function (status) {
console.log('Error');
console.log(status);
}
});
{
"ArFee": 1195, "Penalty": 647.5, "Total": 1842.5
}
But with I execute this function I get
Uncaught SyntaxError: Unexpected token :
Is the token the ':' in the JSON object? Where do I look for this syntax error?
Thank you.
Kevin