I am getting json response like this
{"item_id":"1","item_title":"Item 1"}{"item_id":"2","item_title":"Item 2"}
how would I parse this for each data returned?
Tried
$.ajax({
url: 'linktojson',
type: "post",
dataType: "json",
success: function (response) {
//console.log('isok');
if (response.item_id) {
$('#posts').html(response.item_id);
}
}
});
but works only if I have 1 item in the response.
thank you!