Following code will parse the JSON data into PHP arrays.
$json_string='{"id":1,"name":"rolf","country":"russia","office":["google","oracle"]} ';
$obj=json_decode($json_string);
echo $obj->name; //displays rolf
echo $obj->office[0]; //displays google