• Модуль: ui
  • Путь к файлу: ~/bitrix/modules/ui/lib/entityselector/textnode.php
  • Класс: BitrixUIEntitySelectorTextNode
  • Вызов: TextNode::jsonSerialize
public function jsonSerialize()
{
	if ($this->getType() === null)
	{
		return $this->getText();
	}
	else
	{
		return [
			'text' => $this->getText(),
			'type' => $this->getType()
		];
	}
}