I send the request to server using jquery $.ajax and it returns JSON.
$.ajax({
url: 'moreMonth.ajax',
data: { startIndex: id },
success: function(data) {
$.each(data, function(k, v) {
alert(k + ':' + v);
});
}
});
But I've got an error
invalid 'in' in operand a
As far as I can understand - is it a problem with success block?
Log:
"[
{"name":"Advanced Complexity Theory.rar","size":672398,"present":true,"display":false,"publisherId":1,"downloadDate":"Jun 9, 2014 11:05:28 AM","id":11},
{"name":"Algorithms and Complexity, Internet Edition.rar","size":971299,"present":true,"display":false,"publisherId":1,"downloadDate":"Jun 9, 2014 11:05:28 AM","id":12}
]"