Invalid json for View Records API

Invalid json for View Records API

Hi, 

I am using the View records api to get a list of report. I ask for json response, while sending the get api. But in the reponse I get an invalid json.

Please let me know what should be done to resolve this error.

Below is the code for ref

 $curl = curl_init();
 $headers = array(
    'Content-Type: application/json',
    'Accept: application/json'
 );
 curl_setopt($curl, CURLOPT_URL,$service_url);
 curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
 curl_setopt($curl, CURLOPT_RETURNTRANSFER, true );
 curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
 $curl_response = curl_exec($curl);
 curl_close($curl);

 $response = json_decode($curl_response,TRUE);


 print_r($response);

I donot get a json reponse.