On Ubuntu 13.10 you have to install this extension first (PHP 5.5.3):
apt-get install php5-json
(Don't forget to restart web server.)
JSON eklentisi paketlenmiş ve derlenmiş haliyle PHP'de öntanımlı olarak gelmektedir.
PHP 8.0.0 itibariyle, JSON eklentisi PHP nin temel eklentilerinden biri olup daima etkindir.
Bu PECL eklentisini kurma bilgisi kılavuzun PECL eklentisinin kurulması başlıklı faslında bulunabilir. Yeni dağıtımlar, indirmeler, kaynak dosyaları, sürdürücü bilgileri ve CHANGELOG gibi ek bilgiler şu adreste bulunabilir: » https://pecl.php.net/package/json
On Ubuntu 13.10 you have to install this extension first (PHP 5.5.3):
apt-get install php5-json
(Don't forget to restart web server.)
even though the manual says the json extension is enabled by default and compiled into the core, I had to do a "yum install php-json" on centos 8 running php 7.2
on CentOS php 5.5.13 had to:
yum install php55u-pecl-jsonc php55u-pecl-jsonc-devel
On one server I use (FreeBSD 6.3; PHP 5.2.6 as module in Apache 2.2.10), PHP was compiled with the '--disable-all' configuration option. Consequently, there exists a secondary configuration file -- /usr/local/php5/etc/extensions.ini -- in which the line
; extension=json.so
must be uncommented (delete the semicolon) and Apache restarted for these functions to be available.
On RHEL5/CentOS5 add the EPEL repository (http://fedoraproject.org/wiki/EPEL).
After that, installation is as simple as:
sudo yum install php-pecl-json