json_last_error_msg
pestphp/pest
Supported Versions: PHP 5 >= 5.5.0, PHP 7, PHP 8
Returns the error string of the last json_encode() or json_decode() call
<?php json_last_error_msg
():
string