更新时间:2023-12-04 14:06:47
提示:
初始JSON(存储在$json
变量中)无法验证.
The initial JSON (stored in $json
variable) does NOT validate.
代码:(固定)
<?php
$jsonurl='http://www.foxsports.com.au/internal-syndication/json/livescoreboard';
$json = file_get_contents($jsonurl,0,null,null);
$json = strip_tags(str_replace("jQuery.fs['scoreboard'].data =","",$json));
$json_output = var_dump(json_decode($json,true));
echo $json_output;
?>
这将起作用. :-)