title: How can I get data from JSON array object with JQUERY?
body: <p>How can I get all the data from the JSON array objects with jquery?<br>
  I have tried before but my code only can get the data from the JSON object.  </p>
  
  <p>This is my json file <em>student.json</em> :</p>
  
  <pre><code>{"status":true,
    "offset":0,
    "limit":25,
    "total":2,
    "data":[
      { "id":231,
        "title":"mytitle1",
        "content":"myconten1",
        "created_at":"2017-07-10 03:56:32",
        "updated_at":"2017-07-10 03:56:32"
      },{ "id":230,
          "title":"mytitle2",
          "content":"mycontent2",
          "created_at":"2017-07-10 03:56:06",
          "updated_at":"2017-07-10 03:56:06"
      }]}
  </code></pre>
  
  <p>My js script :</p>
  
  <pre><code>&lt;script&gt;
      $(document).ready(function(){
          $(function (){
              var $orders = $('#orders');
              $.ajax({
                  type: 'GET',
                  url: 'json/student.json',
                  success: function(data) {
                      console.log('success', data);
                      $.each(data, function(i, dataentry){
                          $orders.append('&lt;li&gt;dataid: '+dataentry.id+'&lt;/li&gt;');
                      });
                  }
              });
          });
  
      });
  &lt;/script&gt;
  </code></pre>