code: public function setAllowJsonApi($allowJsonApi)
      {
          if (!is_bool($allowJsonApi)) {
              throw new \InvalidArgumentException('`allowJsonApi` expects boolean value!');
          }
  
          $this->options['allowJsonApi'] = (bool) $allowJsonApi;
          return $this;
      }
docs: Set TRUE if JSON API is allowed.
  
  @param boolean $allowJsonApi
  @return CronService
  @throws \InvalidArgumentException Whenever `$allowJsonApi` is not a boolean value.