Why is json_decode failing?

Use print_r(); and into a variable to work further.
Example:

$convertObj = json_decode($fetchJobs);
$jobArray = print_r($convertObj->data, true);

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)