When I query the following API.
var json_obj;
$.getJSON("https://46il4vpccl.execute-api.eu-west-2.amazonaws.com/api/secblogfeed/Threatpost", function (data) {
json_obj = data;
});
I can then see the output using the following approach:
alert(json_obj.Items[0].title);
alert(json_obj.Items[0].link)
What I would like to do is return a list of all title and link as a hyperlink as follows by expanding on the code above:
(Desired output HTML would be like this on a web page).
<p><a href="link string here">title string here</a></p>
<p><a href="link string here">title string here</a></p>
etc
I have tried various ways of looping through this data but would like to learn how to do this efficiently. Thanks for any help.