I have a JSON object array that is created in PHP that I need to be able to send down to javascript so that javascript can sort through the JSON using JSON.parse
What is the best way to go about doing this?
It actually depends on how you want to get it with javascript. If you will get it with ajax you can use it like below to write it out.
<%php echo json_encode($your_json_data);%>
If your javascript is on same file as your json array is than
<script language="javascript">
var myJSJson = <%php echo json_encode($json_data)%>;
</script>
Would do the trick.