In PHP 7.0 Fatal error: Uncaught Error: Call to undefined function json_encode()
I run the following command to install json for php7 and it worked perfectly fine.
[root@server dbs]# sudo yum install php70u-json
Install:
php70u-json.x86_64 0:7.0.32-1.ius.centos7
Result:
Complete!
[root@server1 ~]# systemctl restart httpd
For me was enough with:
yum install php-json
I'm using php7.2