public function execute() { $responseData = $this->getPreviewObject()->getData(); $json = $this->jsonHelper->jsonEncode($responseData); $this->getResponse()->representJson($json); }