title: Display a clean list from json data
body: <p>I'm trying to display in a list all the elements of my json.</p>
  
  <p>I have a var "json" containing all my data.</p>
  
  <p>What I exactly want is display the datas like this :</p>
  
  <pre><code>   &lt;ul&gt;
       &lt;li&gt;title + "of the first element"&lt;/li&gt;
       &lt;li&gt;title + "of the second element"&lt;/li&gt;
       &lt;li&gt;title + "of the third element"&lt;/li&gt;
     &lt;/ul&gt;
  </code></pre>
  
  <p>Every time I try something with a simple "for", it only display me the last element. </p>
  
  <p>The closest solution I had was with this I think:</p>
  
  <pre><code>function displayJson(){
  
      $.each(json, function(key, value) {
          $(this).html("&lt;li&gt;" + json[key].title + "&lt;/li&gt;");
       });
  
  }
  </code></pre>
  
  <p>I'm a beginner, any help would be really appreciated !</p>