To enable JSON Support in php, do the following in Redhat / Fedora Server
- Execute the following Command from root account
# pecl install json
- Ensure that json.so exists in folder /usr/lib/php/modules
- If exists, add the following line to /etc/php.ini
extension=json.so
- Restart Apache (
# service httpd restart
) - Execute phpinfo() to verify JSON enabled