I we’re able to collect the data and then loop within the collection. Then try to display the data using the following:
$.getJSON(url, function (result) {
console.log(result);
$.each(result, function (i, field) {
var year = field.applicableYear;
var month = field.applicableMonth;
var weight = field.weight_kg;
});
But the result is one liner only. Need your guidance.