“This is my response from backend script.”
OK, so assuming that object ends up in a variable called response
you can just use a simple loop to access each object in the array in turn:
for (var i = 0; i < response.length; i++) {
console.log(response[i].fields.title);
console.log(response[i].fields.url);
}
(Where obviously you’d do something more exciting than just output the values to the console.)
But if that’s not enough jQuery for you, use $.each()
:
$.each(response, function(i, item) {
console.log(item.fields.title);
console.log(item.fields.url);
});
solved How to get in jQuery `title` and `url` value from every object? [closed]