Without putting much of thoughts and discussion. I would like to write down the commands that you can run on terminal window. It will enable JSON support for PHP in CentOS.
- yum update “*php*”
- yum install php-pear
- yum install gcc
- pecl install json
- cd /etc/php.d/
- echo “extension=json.so” >> json.ini
- service httpd restart
Related posts:

thanks a lot.
Boobs.
Perfect json tut
thanks for the post bro. less than 10min, it install JSON for my php.