Currently diving into the world of Javascript and JSON, but feeling a bit overwhelmed by it all.
Attempting to pull data from a JSON array, I've managed to reach this stage
$(function(){
var $reviews = $('#reviews');
$.ajax({
type: 'GET',
url: "https://api.feefo.com/api/10/reviews/all?merchant_identifier=pub-insurance-4u-co-uk&fields=reviews.service.rating.rating,reviews.service.review,reviews.customer.display_name",
success: function(reviews) {
$.each(reviews, function(i, review) {
$reviews.append('<li>name: '+ review.display_name +', review: '+ review.review + ', rating: '+ review.rating + '</li>');
});
}
});
});
Feeling a bit stuck at the moment. I've come across JSON.parse(), could that be the missing piece? Any guidance or advice would be greatly appreciated. Thanks!