title: how to get data from parse json_encode to ajax jquery
body: <pre><code>//this is views file in codeigniter
  $(".saving").click(function(){
      var id_member = $("#code_member").val();
      $.ajax({
          url     : '&lt;?=site_url();?&gt;show_joinmember/',
          type    : 'post',
          dataType: "json",
          data    : {'id_member':id_member},
          success : function(data){                           
              alert(data);
          }
      });
  });
  
  
  
  function show_joinmember(){
      $id  = $this-&gt;input-&gt;post('id_member');
      $qry = "select * from member where id_member = $id";
      $Sql = $this-&gt;db-&gt;query($qry)-&gt;result();
      foreach ($Sql as $r){
          $r-&gt;value  = $r-&gt;vendor_acct;
          $r-&gt;id     = $r-&gt;apinvoice_id;
          $row_set[] = $r;        
      }
      echo json_encode($row_set); 
  }
  </code></pre>
  
  <p>result alert(data)</p>
  
  <blockquote>
    <p>[object Object],[object Object],[object Object],[object
    Object],[object Object],[object Object],[object Object],[object
    Object],[object Object],[object Object],[object Object],[object
    Object],[object Object],[object Object],[object Object],[object
    Object],[object Object]</p>
  </blockquote>