"; var_dump($data); echo ""; foreach($data as $key => $val) { echo $key . ""; // employees foreach($data->$key as $k1 => $v1) { foreach($v1 as $k2 => $v2) { echo "$k2 = $v2"; } } } // http://www.w3schools.com/json/ ?>