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