I want to retrieve name from the following JSON object:
In my AJAX response function I have the following:
success: function (response) {
.each(response, function (idx, obj) {
console.log(obj[1]);
var name = obj.author["name"];
generatedHtml.push(`${name} <br><br>`);
});
},
I keep getting the error obj.author is undefined
. What should I do?
EDIT: The complete JSON is available here: https://gist.github.com/SeloSlav/acb223dd25c589c660c7326dbf3e7bdc