title: convert json_encode data to javascript array
body: <p>I am send some data from php by json_encode to javascript. this is the data  </p>
  
  <pre><code>[{"albumid":"ASaBFzCtl8","albumname":"anni","type":"3","access":"2","itemcount":"2"},{"albumid":"EmgsZ43ehT","albumname":"testalbum","type":"1","access":"1","itemcount":"0"},{"albumid":"Jf4H4SvFGk","albumname":"test2album","type":"3","access":"1","itemcount":"0"},{"albumid":"k3pacBSmIl","albumname":"testalbumpvt","type":"3","access":"2","itemcount":"0"}]
  </code></pre>
  
  <p>after enoding in php it is something like that </p>
  
  <pre><code>       //json_encode($data);
  
  "[{\"albumid\":\"ASaBFzCtl8\",\"albumname\":\"anni\",\"type\":\"3\",\"access\":\"2\",\"itemcount\":\"2\"},{\"albumid\":\"EmgsZ43ehT\",\"albumname\":\"testalbum\",\"type\":\"1\",\"access\":\"1\",\"itemcount\":\"0\"},{\"albumid\":\"Jf4H4SvFGk\",\"albumname\":\"test2album\",\"type\":\"3\",\"access\":\"1\",\"itemcount\":\"0\"},{\"albumid\":\"k3pacBSmIl\",\"albumname\":\"testalbumpvt\",\"type\":\"3\",\"access\":\"2\",\"itemcount\":\"0\"}]"
  </code></pre>
  
  <p>i am receiving this in jquery </p>
  
  <pre><code>$.post("demo.php",
    {
      token:"123456789"
    },
    function(data,status){
      alert("Data: " + data + "\nStatus: " + status);
    });
  </code></pre>
  
  <p>what can i do so that i get all data in javascript array
  i need type value out of it and looking something like that </p>
  
  <pre><code>var typevalue = jsonArray['type'];
  // typevalue = 3
  </code></pre>