• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/component/base.php
  • Класс: BitrixIblockComponentBase
  • Вызов: Base::sendJsonAnswer
static function sendJsonAnswer(array $result = array())
{
	global $APPLICATION;

	if (!empty($result))
	{
		$result['JS'] = MainPageAsset::getInstance()->getJs();
	}

	$APPLICATION->RestartBuffer();

	/* don't change this block, because delayed CFile::ResizeImageGet is not started in cloud */
	echo MainWebJson::encode($result);
	CMain::FinalActions();
	/* block end */
}