title: how to display data with javascript [object]
body: <p>Please Help Me data does not appear in the div
  result and display [object] how to fix it?</p>
  
  <pre><code> &lt;div id="result"&gt;
   &lt;/div&gt;
   &lt;script&gt;
      jQuery(document).ready(function($){
      var html = 'Sedang memproses data';
      $('#result').html(html);
      $('#result').css('background','none');
      $.getJSON( "get.php?nopel=&lt;?php echo $idp;?&gt;", function(data) {
        if(data) {
            html = '&lt;h2&gt;Berikut Tagihan Listrik Anda&lt;/h2&gt;&lt;table&gt;';
            $.each(data,function(x,y){
                html += '&lt;tr&gt;&lt;td&gt;'+x.replace('_','/')+'&lt;/td&gt;&lt;td&gt;'+y+'&lt;/td&gt;';
            });
            html += '&lt;/table&gt;';
            $('#result').html(html);
        }
        else {
             $('#result').html('Tidak ada data');
        }
      });
     });
  &lt;/script&gt; 
  </code></pre>
  
  <p>with json data like this, how to invite it to JavaScript</p>
  
  <pre><code>{
   "status": "success",
    "data": [
  {
    "Info": "A",
    "hasil": "AA"
  },
  {
    "Info": "B",
    "hasil": "BB"
  }
   ]
  }
  </code></pre>
  
  <p>console.log (data)
  <a href="https://i.stack.imgur.com/ANAYh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ANAYh.png" alt="enter image description here"></a></p>