src/CronHelper/Service/CronService.php
public function setAllowJsonApi($allowJsonApi)
    {
        if (!is_bool($allowJsonApi)) {
            throw new \InvalidArgumentException('`allowJsonApi` expects boolean value!');
        }

        $this->options['allowJsonApi'] = (bool) $allowJsonApi;
        return $this;
    }
public function setAllowJsonApi($allowJsonApi)
    {
        if (!is_bool($allowJsonApi)) {
            throw new \InvalidArgumentException('`allowJsonApi` expects boolean value!');
        }

        $this->options['allowJsonApi'] = (bool) $allowJsonApi;
        return $this;
    }
Set TRUE if JSON API is allowed.

@param boolean $allowJsonApi
@return CronService
@throws \InvalidArgumentException Whenever `$allowJsonApi` is not a boolean value.