What is the output of the following code snippet that uses Extbase’s JSON view? (1)
use \TYPO3\CMS\Extbase\Mvc\Controller\ActionController;
use \TYPO3\CMS\Extbase\Mvc\View\JsonView;
class ExampleController extends ActionController
{
/**
* @var \TYPO3\CMS\Extbase\Mvc\View\JsonView
*/
protected $defaultViewObjectName = JsonView::class;
public function showAction()
{
$data = ['foo' => 'bar'];
$this->view->assign('value', $data);
}
}
Selecione uma ou mais das seguintes: