I use ajax to get some json encoded data from a joomla component. What I receive is what I will show in next picture:
Now there are 2 objects(aka 2 courses). Now I want to show those 2 courses(name,category and so on) to the DOM, but I dont know how using javascript/jQuery, dont know how to iterate through them. I think angular might be also a solution, but I am not that sure.
jQuery.ajax({
method:"POST",
url: 'url',
data:{filters:filters},
jsonpCallback: 'jsonCallback',
dataType: 'json',
error: function(e) {
console.log(e.message);
}
}).done(function(json){
console.log(json);//this is shown in the image
});
Please help me, thanks!