code: def json(self):
          
          return {
              "status": self.status,
              "criteria_name": self.criteria_name,
              "warnings": [w.json() for w in self.warnings],
              "settings": self.settings,
          }
docs: Return a JSON-serializable representation of this result.
  
          The output of this function can be converted to a serialized string
          with :any:`json.dumps`.