title: Json decode in javascript
body: <p>i have encoded my required data in the json object ,but i want to decode the json object into a javscript array, my json encoded object is :</p>
  
  <pre><code>{"product_id":"62","product_quantity":"65"}
  </code></pre>
  
  <p>however i want to use this json in my java script and want it to be available to a java script array</p>
  
  <p>so if i do :</p>
  
  <pre><code>var arr = new Array()
  arr = &lt;?php json_decode('$json_object',TRUE); ?&gt;;
  </code></pre>
  
  <p>however when i check my page source i get null i.e  arr = 
  how can i assign my json object converted to array to java script array ?
  further how to access the json objects from java script array ?</p>