Add the json_search_last_error_message function.