hasErrors method for JsonController