Dear All I am using Json in php, Now I need to access it from javascript, How to pass json object ,to javascript?
<?php
$array = array("a"=>"Caucho", "b"=>"Resin", "c"=>"Quercus");
$json = json_encode($array);
>
Where My.js has
showAll(){
alert("Show All Json Objects");
// How to get the json value here
}
Anyone help me how to do it?