how to add ext-json in php cli code example Example: add json extenstion php sudo yum install php-json sudo vim /etc/php.ini add extension=json.so