I am stuck with this error => Invalid value passed for JSONString
public function ZohoGetPayments(){
$data = array(
"authtoken" => 'xxxxxxxxxxxxxxxxxxxxx',
"organization_id" => '669341062',
"scope" => 'ZohoBooks/booksapi'
);
$curl = curl_init($url);
curl_setopt_array($curl, array(
CURLOPT_POST => 1,
CURLOPT_POSTFIELDS => $data,
CURLOPT_RETURNTRANSFER => true
));
$result = curl_exec($curl);
return json_decode($result);
}