(PHP 7 >= 7.3.0)
Exception thrown if JSON_THROW_ON_ERROR option is set for json_encode() or json_decode().
JSON_THROW_ON_ERROR