The JSON extension is a core PHP extension, so it is always enabled.
Prior to PHP 8.0.0, the JSON extension was bundled and compiled into PHP by default, but could be explicitly disabled using --disable-json.
Prior to 5.2.0, the JSON extension was installed as a » PECL module.