title: getJSON + reddit api — how to bite it?
body: <p>I would like to append my div with first permalink from subreddit. I've tried  following jQuery's documentation, Smashing Magazine's article and reddit's github but without any effect. Please help me understand how to do this.</p>
  
  <p>Jquery:</p>
  
  <pre><code>$(document).ready(function(){
          $.getJSON("api.reddit.com/r/aww/.json", function(json){
             $(".slodziaki").append("&lt;p&gt;Permalink&lt;/p&gt;"+ json.data.children.data[0].permalink)'         
          });
  });
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;meta charset="utf-8"&gt;
          &lt;title&gt;Słodziaki.&lt;/title&gt;
          &lt;script&gt;
  
          &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div class="slodziaki"&gt;
              Reddit api test.
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>jsFiddle: <a href="http://jsfiddle.net/AdVS3/2/" rel="nofollow">http://jsfiddle.net/AdVS3/2/</a></p>