I have looked through here and I realize it doesn't look like getJSON returns anything but a object that is unusable. The problem I am having is that I am trying to edit someone else's code to pull picture from flickr. I am trying to make a function that will return the description of the pictures. I know that it doesn't return information however there has to be a way to update a global variable or somehow pass off the information i need into another variable to return to his function. This is the jist of what I have so far.
  function add_description(n){
    var img_id = String(n);
    var textInfo ="";
$.getJSON('http://api.flickr.com/services/rest/?method=flickr.photos.getInfo&api_key=36c8b00c47e8934ff302dcad7775d0a2&photo_id='+img_id+'&format=json&jsoncallback=?', function(data ){
                 textInfo = String(data.photo.description._content);
                alert(textInfo);
                return textInfo;           
            })
}
this is the code I tried after your updates George. Thanks!
 var testObj=$.getJSON('http://api.flickr.com/services/rest/?method=flickr.photos.getInfo&api_key=36c8b00c47e8934ff302dcad7775d0a2&photo_id='+img_id+'&format=json&jsoncallback=?', function(data ){
                 textInfo = String(data.photo.description._content);
                alert(textInfo);
                return textInfo;
            })
 
     
     
    