how can i get the auhtor name from this getJSON
$.getJSON('http://gdata.youtube.com/feeds/api/videos/tPYtsDPXtOY/comments?alt=json-in-script&callback=jsonp1282584741426&max-results=10', function(data) {
$.each(data.feed.entry, function(i, item) {
var title = item['content']['$t']; // work
var author = item['author']['$t']; // dont work
$('body').append('['+author+'] <br /> '+title+'<hr/>');
});
});
Thanks in advance!
Peter
After looking at the response JSON, it seems you can change
to
I’m not sure if you can have more than one author though.