title: JSON object value from PHP
body: <p>I am using JSON in PHP, and now I need to access it from JavaScript. How do I pass a JSON object to JavaScript?</p>
  
  <pre><code>&lt;?php
      $array = array("a"=&gt;"Caucho", "b"=&gt;"Resin", "c"=&gt;"Quercus");
      $json = json_encode($array);
  &gt;
  </code></pre>
  
  <p>where My.js has:</p>
  
  <pre><code>showAll(){
      alert("Show All Json Objects");
      // How do I get the JSON value here?
  }
  </code></pre>
  
  <p>How can I do it?</p>