Installation

The JSON extension is bundled and compiled into PHP by default.

As of PHP 8.0.0, the JSON extension is a core PHP extension, so it is always enabled.

Information for installing this PECL extension may be found in the manual chapter titled Installation of PECL extensions. Additional information such as new releases, downloads, source files, maintainer information, and a CHANGELOG, can be located here: » https://pecl.php.net/package/json

add a note

User Contributed Notes 3 notes

up
-3
Anonymous
4 years ago
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
up
-4
ferenczy at NOSPAM dot volny dot cz
10 years ago
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.)
up
-4
YesCT
10 years ago
on CentOS php 5.5.13 had to:
yum install php55u-pecl-jsonc php55u-pecl-jsonc-devel
To Top