json_decode
json_last_error
json_last_error_msg
Returns the last error occurred during JSON encoding/decoding.
json_last_error(): int