public function isJson()
    {
        if ($this->is_json === null) {
            $this->is_json = strpos($this->getContentType(), 'application/json') !== false;
        }

        return $this->is_json;
    }