I searched and read most of the related topics, but they weren\'t what I was looking for.
I\'ve a JSON enocded string with json_encode PHP function:
The issue you are facing is that you are presenting the results of the json_encode call to JavaScript as a string whereas it is valid JavaScript. Remove the jQuery.jsonParse set out of the output and simply assign the echoed results to the JavaScript variable in question.
var obj = = json_encode(array("casts"=>array(
"Matthew Modine","Adam Baldwin","Vincent D'Onofrio"
),"year"=>1987)); ?>;