JSON stands for the JavaScript Object Notation, this is a very light weight data-interchange format in programming and also based on a subset of the JavaScript Programming Language. The JSON language developed for easy to read and write the code for humans.
Sometimes this package is not installed in your instance or your local machine by default. this post walk you through how to install JSON-PHP extension on your CentOS and Ubuntu operating systems.
On Ubuntu:
apt-get update
apt-get install php-json
On CentOS:
yum update
yum install php-json
Restart the webserver,
If you are using Ubuntu operating system use the command below,
NGINX:
systemct restart nginx.service
Apache:
systemct restart apache2.service
If you are using CentOS operating system use the command below,
NGINX:
systemct restart nginx.service
Apache:
systemct restart httpd.service
Comments (0)