php undefinde function json_decode()

centos8下:

在安装完php组建后

sudo yum -y install php php-fpm

要安装 php-json

sudo apt-get install php-json

启动

sudo systemctl start php-fpm
sudo systemctl restart nginx
原文地址:https://www.cnblogs.com/ice5/p/14067542.html