title: Parsing JSON with AJAX - show random item of the JSON and update after an amount of time
body: <p>I'm able to parse JSON with ajax, but at the moment it shows all the names out of the JSON.</p>
  
  <p>I want only one name viewed and after an amount of time I want another one viewed and so on..</p>
  
  <p>Ajax code:</p>
  
  <pre><code>$(document).ready(function(){
      parseJson();
  });
  
  function parseJson(){
      $.ajax({
          url : 'data/members.json',
          dataType : 'json',
          success : function(data) {
              succes(data);
          },
          error: function(){
              window.alert("error");
          }
      });
  };
  
  function succes(dataObj){
      var counter = 1;
      $.each(dataObj.Members.Member, function(indexData, valueData){
          var htmlString = "";
          htmlString += '&lt;article class="memberInfo" data-object="' + counter + '"&gt;';
          htmlString += "&lt;div class=''&gt;&lt;p&gt;" + valueData.Firstname + ' ' + valueData.Surname + "&lt;/p&gt;&lt;/div&gt;";
          htmlString += "&lt;/article&gt;";
          $("#members").append(htmlString);
          counter++;      
      });
  }
  </code></pre>