I get JSON response from a server:
[{"id":605,"vote":1},{"id":606,"vote":-1},{"id":611,"vote":1},{"id":609,"vote":-1}]
Then I try to loop through results and get objects properties:
success:
function (data) {
$.each(data, function() {
$.each(this, function(i, v) {
alert(i+v);
});
});
}
But somehow my code fails and no alert is shown. What am I doing wrong guys?