I'm writing ajax post request. The problem is that i don't know how to loop throught json. on success i got this function:
.done(function ( data ) {
$('#records').append(data);
});
And it prints content into my #records like this:
0: {id: 1, user_id: 1, title: "first", created_at: "2015-05-15 06:50:21",…}
1: {id: 2, user_id: 2, title: "second", created_at: "2015-05-15 06:50:38",…}
2: {id: 3, user_id: 3, title: "third", created_at: "2015-05-15 06:50:41",…}
3: {id: 4, user_id: 4, title: "fourth", created_at: "2015-05-15 06:50:45",…}
How do i loop throught id's and pick it's content (1,2,3,4)? Thanks in advance!