src/Core/BaseController.php
protected function setJSONContent(array $content)
    {
        if ($this->deleteJsonKeys) {
            $content = $this->deleteArrayKeys($content);
        }
        $content = json_encode($content, JSON_UNESCAPED_UNICODE);
        $this->response->setContentTypeJson();
        $this->response->setContent($content);
    }
protected function setJSONContent(array $content)
    {
        if ($this->deleteJsonKeys) {
            $content = $this->deleteArrayKeys($content);
        }
        $content = json_encode($content, JSON_UNESCAPED_UNICODE);
        $this->response->setContentTypeJson();
        $this->response->setContent($content);
    }
Create Response from content.

@param array $content