This post guides you to compile PHP with json in CentOS.
By assuming that you have already installed PHP in the system I am going to guide you the installation steps
Please run the following command to install json in the server.
#pecl install json
After completing the command please goto php.d folder
Then open a file with .ini extension probably json.ini.
Add the following in json.ini file for php to load json extension.
Then restart you httpd service.
This will compile PHP with json.
Thank you for visiting helpinlinux.com