【发布时间】:2012-10-04 18:54:58
【问题描述】:
我正在尝试在 php 中使用 json_decode 解析 json。 一个 url 失败了,谁能告诉我为什么它失败了,php 中有 json_decode 的替代方法吗?
这是我的代码
$url='https://espn.go.com/travel/sports/calendar/getList.json?&xhr=1&date=20121027&type=list&query=null&myTeams=';
$html = file_get_html($url);
$json=json_decode($html,true);
//这里的json为空
【问题讨论】: