Я хочу спросить, как я могу реализовать функцию с извлечением поля JSON?function renderConditions() {
if (!node.data.conditions) node.data.conditions = [];
conditionsContainer.innerHTML = node.data.conditions.map((cond, idx) => {
let display = '';
if (cond.type === 'not_null') display = `${cond.field} IS NOT NULL`;
else if (cond.type === 'is_type') display = `${cond.field} IS ${cond.value}`;
else if (cond.type === 'length_min') display = `LENGTH(${cond.field}) >= ${cond.value}`;
else if (cond.type === 'length_max') display = `LENGTH(${cond.field})
Подробнее здесь: https://stackoverflow.com/questions/796 ... en-in-json