$.getJson> $.each returns undefined
<pre><code>function getData(d){
Back = new Object();

$.getJSON('../do.php?',
   function(response){    
    if(response.type == 'success'){ 
    Back = { "type" : "success", "content" : "" };
    $.each(response.data, function(data){   
       Back.content +='&lt;div class="article"&gt;&lt;h5&gt;'+data.title+'&lt;/h5&gt;'
       Back.content +='&lt;div class="article-content"&gt;'+data.content+'&lt;/div&gt;&lt;/div&gt;';
      });

    }
    else{
     Back = {"type" : "error" };
    }

    return Back;
  });
}

console.log(getData()); 
</code></pre>

<p>is returning undefined! why?</p>
