PHP.nl

json_last_error_msg

json_last_error_msg

Returns the error string of the last json_validate(), json_encode() or json_decode() call

string **json_last_error_msg**

Returns the error string of the last , or call, which did not specify . json_validate``json_encode``json_decode``JSON_THROW_ON_ERROR

Returns the error message on success, or if no error has occurred. "No error"

json_last_error