读入我的编辑器时,该文件看起来很好.
$file = file_get_contents('path/to/file.json');
$json = json_decode($file, true);
var_dump($json); // null
echo json_last_error_msg(); //Control character error, possibly incorrectly encoded
Run Code Online (Sandbox Code Playgroud)
关于此错误消息的含义并不多.