title: get json array back through javascript in jquery
body: <p>I have an external file in php, outputed as json format </p>
  
  <p>I want the data to be send back to jquery in arrays .... how to do it ? </p>
  
  <p><strong>php:</strong> </p>
  
  <pre><code>$options = "&lt;option value="data0"&gt;data 0&lt;option&gt;
  &lt;option value="data1"&gt;data 1&lt;option&gt;
  &lt;option value="data2"&gt;data 2&lt;option&gt;
  &lt;option value="data3"&gt;data 3&lt;option&gt;
  &lt;option value="data4"&gt;data 4&lt;option&gt;";
  
  $arr = array("options" =&gt; $options);
  echo json_encode($arr);
  </code></pre>
  
  <p><strong>jquery json:</strong> </p>
  
  <pre><code>var new_data = ' data.options ';
  
  $(div_list).html(new_data);
  </code></pre>