Установка

Начиная с PHP 5.2.0, расширение JSON по умолчанию входит в поставку PHP.

Информация по установке этого расширения PECL может быть найдена в главе руководства Установка PECL расширений. Дополнительная информация, такая как новые версии, скачивание, исходные файлы, информация о разработчике и CHANGELOG, может быть найдена здесь: » http://pecl.php.net/package/json

Коментарии

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.
2009-01-20 06:24:15
http://php5.kiev.ua/manual/ru/json.installation.html
On gentoo, need the USE flag "json" to compile into php
2010-10-19 09:11:57
http://php5.kiev.ua/manual/ru/json.installation.html
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
2011-01-22 11:45:52
http://php5.kiev.ua/manual/ru/json.installation.html
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.)
2013-12-11 17:46:44
http://php5.kiev.ua/manual/ru/json.installation.html
Автор:
on CentOS php 5.5.13 had to:
yum install php55u-pecl-jsonc php55u-pecl-jsonc-devel
2014-06-27 10:44:08
http://php5.kiev.ua/manual/ru/json.installation.html
Автор:
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
2020-04-08 10:32:17
http://php5.kiev.ua/manual/ru/json.installation.html

    Поддержать сайт на родительском проекте КГБ