let information;
$.ajax({
url: link,
type: 'POST',
dataType: "json",
success: function (data, textStatus) {
information = data;
alert(data.name);
}
});
I am attempting to retrieve JSON-encoded data from a specific URL. Here is the response that AJAX receives from the server: http://pastebin.com/53e6CgbK. However, my web browser is giving me an error:
Uncaught SyntaxError: Unexpected token :
How can I extract an attribute from the JSON encoded data?