JSONが最初から使えるのはPHP5.2からです。 CentOS-5で標準のPHP5.1では以下のようにします。 # yum install php-devel php-pear libtool gcc-c++ # pecl install json # vi /etc/php.d/json.ini extension=json.so # /etc/init.d/httpd restart # yum install php-devel php-pear libtool gcc-c++~ # pecl install json~ # vi /etc/php.d/json.ini~ extension=json.so~ # /etc/init.d/httpd restart~