This is my code:
$.ajax({ url: \"some_url/\", type: \"GET\", dataType: \"json\", success: function(data){ console.log(data);
Just check if the data is JSON string.
data = "[{"model":"app.mdl","pk":1,"fields":{"name":"test","rank":1}}]"
if yes, the you have to do JSON.parse(data) and do forEach on it.