PHP解析 JSON 数据

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

$json_string='{"id":1,"name":"rolf","country":"russia","office":["google","oracle"]} ';
$obj=json_decode($json_string);
//print the parsed data
echo $obj->name; //displays rolf
echo $obj->office[0]; //displays google