public function json($forceJson = false, $returnAllIfNotJson = true)
    {
        if ($forceJson || $this->isJson()) {
            return json_decode($this->getContent());
        }

        if (! $returnAllIfNotJson) {
            return null;
        }

        return (object) $this->all();
    }