I am pulling json array data from my Instagram api: https://www.instagram.com/finkavenue/media/
There are a pair of parentheses () within the data. Those parentheses are throwing the error in my console upon ajax request:
SyntaxError: missing ; before statement
How can I purge or cleanse my json data of the parentheses and do an ajax request?
My ajax code is:
var url = "https://www.instagram.com/finkavenue/media/";
displayImgs(url);
function displayImgs(url) {
$.ajax({
type: "GET",
dataType: "jsonp",
cache: false,
url: url,
success: function(data)
{
alert(JSON.stringify(data));
console.log(data);
for(var i=0;i<data.length; i++)
{
$("#instagram").append('<img src="'+data.data[i].images.standard_resolution.url+'" height="350" width="350">');
}
}
});
}