Como JSON_ENCODE Uma matriz no identificador inesperado PHP

// Don't wrap the json_encode result in quotes
var data = <?php echo json_encode($serializedData) ?>;
Dizzy Dog