Description
Legacy PHP 5.6 applications can encode and decode JSON for APIs, configuration, browser communication, and data exchange. This helps old web systems interact with modern services that expect JSON payloads.
It is a data-format extension. Applications should validate decoded values, handle encoding errors, and avoid trusting JSON input simply because it is well formed.