I would like to interpret data from JSON feed using jQuery getJSON.
$(function() {
$.getJSON('http://gdata.youtube.com/feeds/users/raywilliamjohnson/uploads?alt=json-in-script&callback=showMyVideos2&max-results=30', function(data) {
$.each(data.feed.entry, function(i, item) {
updated = item.updated;
url = item['media$group']['media$content']['url'];
thumb = item['media$group']['media$thumbnail'][0]['url'];
numViews = item['yt$statistics']['viewCount'];
});
});
});
How to correctly interpret JSON data and assign variables to data items (ex. url, numViews, etc...)? Thanks much in advance for any help.