require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");
if (CModule::IncludeModule("sale") && CModule::IncludeModule("catalog")) {
$rawData = file_get_contents("php://input");
$jsonData = json_decode($rawData);
echo $jsonData
}
else { echo "Не подключены модули"; }
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_after.php");