json_last_error
json_last_error_msg
abs
Returns the error string of the last json_encode() or json_decode() call.
json_last_error_msg(): string