PHPでJSONをうけとる
$url = "http://tepco-usage-api.appspot.com/latest.json";
$json = file_get_contents($url,true);
if ($json == false) {
echo "エラーメッセージ";
return;
}
PHPでJSONを取得 - billboard-top100.net : http://billboardtop100.net/2011/09/json-php.html
を改変。
公式もあった。
PHP: json_decode - Manual : http://php.net/manual/ja/function.json-decode.php
役に立った!
PHPでJSONに挑戦してみるwwww : IT速報 : http://blog.livedoor.jp/itsoku/archives/37517747.html