I think that this is a pretty straight forward JSON question, but I am stumped.
I can retrieve the data back fine as a json string from YouTube with the following code.
However, I want to determine what the title of the requested video. The result returned from YouTube as you will see is a single result.
Can any help me determine, from the result how I can "alert" the title?
All of the json shows up in the console log.
- var CurLink = "St_ZsaKR_G4"
- $.getJSON("https://gdata.youtube.com/feeds/api/videos?v=2&alt=jsonc&q=" + CurLink,
- function(data) {
- console.log(data);
- alert(<what goes here>);
- }
- );