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
A extensão JSON está incluída e compilada no PHP por padrão.
A partir do PHP 8.0.0, a extensão JSON é uma extensão do núcleo do PHP, por isto está sempre habilitada.
Informações para instalar esta extensão PECL podem ser encontradas no capítulo Instalação de Extensões PECL do manual. Informações adicionais, como novas versões, downloads, arquivos fontes, informações do mantenedor e um CHANGELOG, podem ser encontradas aqui: » https://pecl.php.net/package/json
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 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.)