Add the json_search_last_error function.