This is my code:
$.ajax({ url: \"some_url/\", type: \"GET\", dataType: \"json\", success: function(data){ console.log(data);
Change your success function to this, the JSON.parse() function is required to iterate over the JSON string:
JSON.parse()
success: function(data){ data = JSON.parse(data); console.log(data); data.forEach(function(element){ console.log(element); });