title: Parsing PHP/JSON data in Javascript
body: <p>I'm trying to communicate AJAX, JSON to PHP and then PHP returns some data and I'm trying to parse it with Javascrpt.</p>
  
  <p>From the php, server I return, </p>
  
  <pre><code>    echo json_encode($data); 
  
      // it outputs ["123","something","and more something"]
  </code></pre>
  
  <p>and then in client-side,</p>
  
  <pre><code>success : function(data){
  
      //I want the data as following
  
      // data[0] = 123
      // data[1] = something
      // data[3] = and more something
  }
  </code></pre>
  
  <p>But, it gives as;</p>
  
  <pre><code>        data[0] = [ 
          data[1] = " 
          data[2] = 1
  </code></pre>
  
  <p>It is reading each character but I want strings from the array, not individual characters. What is happening here? Thanks in advance, I am new to Javascript and JSON, AJAX.</p>