PHP - Manual: JsonException
2024-11-14
(PHP 7 >= 7.3.0, PHP 8)
Exception thrown if JSON_THROW_ON_ERROR option is set for json_encode() or json_decode(). code contains the error type, for possible values see json_last_error().
JSON_THROW_ON_ERROR
官方地址:https://www.php.net/manual/en/class.jsonexception.php