I'm trying to pass a php array into Javascript, this is what I have
var urls = <?php echo $json_array[0]; ?>;
However JS seems to have issues with the bracket. Maybe I'm not approaching this correctly but i know if I could get the same $json_array[0] spits out in php into my js I would be all set.