title: how to retrieve the array which is send from controller to the view through ajax?
body: <p>i am new in jquery and ajax. I am really cant figured it out how can i show the array result send from the controller from json_encode. 
  Below is the code in controller:</p>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>            $totaldata['data'] = array('totalscore' =&gt;$totalscore,'totalwicket' =&gt;$totalwicket,'totalover' =&gt;$totalover,'totalextra' =&gt;$totalextra);
  
              $this-&gt;output-&gt;set_output(json_encode($totaldata));
  </code></pre>
  
  <p><strong>Jquery</strong></p>
  
  <pre><code>  $.ajax({
                 url: 'xxxxxxxxx',
                 type : 'POST',
                 data:{
                          xxxx : arrayValue,
                          id    : matchid,
                 },
                 success: function(dataone){
                    //$('.addmatchsuccess').html(dataone).show();
  
                      //setTimeout(function() {location.reload() },3000);
                 }
              });
  </code></pre>
  
  <p><strong>Problem</strong>
  I want to get each array value to be placed in a input field in view ...which i couldnt figured out still how it gonna work. Please any help will be appreciated. Thank You</p>