public function prepareContent()
    {
        $content = $this->content;

        if ($content instanceof Renderable) {
            $content = $content->render();
        } else if ($this->shouldBeJson($content)) {
            $content = $this->toJson($content);
        }

        return $content;
    }