I make an ajax request:
$.ajax({
url: "http://api.forismatic.com/api/1.0/?method=getQuote&format=json&lang=en&jsoncallback=?",
dataType: 'json'
});
and get an error:
SyntaxError: Unexpected token :
When I click on that error in dev tools I see such an object which looks pretty ok for me:
{
"quoteText":"Reality leaves a lot to the imagination. ",
"quoteAuthor":"John Lennon",
"senderName":"",
"senderLink":"",
"quoteLink":"http://forismatic.com/en/9dceb1ebf1/"
}
Where is the problem? I'm unable to find the solution.