Php 当我们使用cloud convert web服务时,json_decode返回NULL

Php 当我们使用cloud convert web服务时,json_decode返回NULL,php,json,drupal-7,Php,Json,Drupal 7,我使用云转换API转换视频。当我使用curl_exec()点击它的purl URL时,它返回json输出 {"id":"F024KteuEliCgA9TLMxh","url":"//hostiorg3y.cloudconvert.com/process/F024KteuEliCgA9TLMxh","percent":100,"message":"Uploaded file to S3 Bucket","step":"finished","starttime":1445239854,"expir

我使用云转换API转换视频。当我使用curl_exec()点击它的purl URL时,它返回json输出

 {"id":"F024KteuEliCgA9TLMxh","url":"//hostiorg3y.cloudconvert.com/process/F024KteuEliCgA9TLMxh","percent":100,"message":"Uploaded file to S3 Bucket","step":"finished","starttime":1445239854,"expire":1445283060,"input":{"type":"s3","filename":"newvideo_0.mp4","name":"newvideo_0","ext":"mp4","size":1089552,"url":"//hostiorg3y.cloudconvert.com/download/F024KteuEliCgA9TLMxh/input"},"output":{"url":"//hostiorg3y.cloudconvert.com/download/F024KteuEliCgA9TLMxh","save":true,"ext":"mpg","filename":"newvideo_0.mpg","size":1685504,"type":"s3"},"converter":{"format":"mpg","type":"ffmpeg","options":{"video_codec":"MPEG2VIDEO","video_bitrate":"1024","audio_codec":"MP3","audio_bitrate":"128","audio_frequency":"44100","audio_qscale":"5"},"duration":14.98},"group":"video","endtime":1445239860,"minutes":1}

但当我使用json_decode()函数对其进行解码时。它返回NULL。

您可能需要启用错误通知来诊断问题。ini设置(“显示错误”,真);你能试着修剪你的JSON吗?例如,
$json=trim($json)?我同时使用json last error msg和json_last_error,但都不返回错误。我还使用trim()、utf8_decode()函数。Odd刚刚在在线函数中尝试了它-看起来还可以,嗯。trim,check在函数中输入了正确的变量-之前使用回音进行检查。json的几个常见错误——您是否遇到了这些问题之一?