json_error()
This function returns a descriptive error string if an error has occurred during the previous call to json_explode.
An error string, or an empty string if the previous call to json_explode succeeded.
json_explode, json_implode