SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
Сижу с этим 3 сутки. Спасите меня пожалуйста:
$.ajax({
url: window.location.href,
dataType: 'json',
}).done().fail(function(jqXHR, textStatus, errorThrown) {
alert( "Request failed: " + textStatus );
console.log(errorThrown);
console.log(jqXHR);
});