Fixed onFailure method in JSON response handler