First off let me say I am new to js …
I’ve been working on this for 2 days and more than likely making it way harder then it has to be
Here is what I have so far…
var result = JSON.parse(JSON.stringify(result.feed.entry));
for(var i = 0; i < result.length; i++){
var results = new Array();
var obj = {};
var tube = result[i];
obj["tLink"] = tube.link[0].$.href;
obj["title"] = tube.title[0];
obj["id"] = tube['yt:videoId'][0];
obj["pic"] = tube['media:group'][0]['media:thumbnail'][0].$.url;
results.push(obj);
console.log(results);
On the left is what I have, the right side is what I’m trying to get to…
Not really sure after a couple days of trying multiple things what I should be doing…
Any help would be very much appreciated!!
Thank you,
John