code: 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);
      }
docs: Create Response from content.
  
  @param array $content