title: how to get result array with getJson CodeIgniter
body: <p>my code :<br>
  model :</p>
  
  <pre><code>function get_all_transaksi_proses() {   
          $rs = $this-&gt;db-&gt;query("SELECT a.id_transaksi, ETC");
          return $rs;
      }
  </code></pre>
  
  <p>control :</p>
  
  <pre><code>public function ambilDataTransaksi() {
              $data=$this-&gt;transaksi-&gt;get_all_transaksi_proses();
               echo json_encode(array("result" =&gt; $data-&gt;result_array()));
          }
  </code></pre>
  
  <p>view :</p>
  
  <pre><code>$.getJSON("&lt;?php base_url();?&gt;transaksiDigorCont/ambilDataTransaksi", function(data) {
          alert("jhjh");
  
      });
  </code></pre>
  
  <p>this my code but it cant show alert("jhjh"), so it can't in to function(data) ?</p>