json won`t get parsed with variables out of an array : I don´t understand why my json doesn´t get parsed. I hope someone could explain this to me. I try to send a json from php to javascript. 

**This code works fine:**

From PHP 

    echo json_encode(array($row['jobunique'], $row['jobtitle']));

to JAVASCRIPT 

    success: function(getjoblist) {
    						  
    		var getjobdetails = $.parseJSON(getjoblist); 
    }


**But this code gives me an error back:**
 
From PHP - data comes out of an array 

    echo json_encode(array($data[2], $data[3]));

I thought, maybe it's an object and I need to make a string out of the variables like this: 

    echo json_encode(array(strval($data[2]), strval($data[3])));

But it did not work either. 

Here is the JAVASCRIPT code: 

    success: function(callback) {
    					  
    	var namearray = $.parseJSON(callback);
    }

**Here is the error from the console:**

    Uncaught SyntaxError: Unexpected token in JSON at position 0

