JSON

How to skip an empty JSON node

2026-06-20
Task

A JSON object has optional nodes such as an empty description. The result should not contain description as an empty string; the key should be removed entirely.

Short Answer

In the description value settings, open Export conditions and set Current valueBefore transformationsnot empty. If the condition fails, Eofferix does not export the current JSON node; the parent product object remains.

How to Do It in Eofferix

  1. In the JSON editor, open the settings of the description value.
    Opening the empty description value settings in the Eofferix JSON editor
    The empty description value is highlighted.
  2. In the settings window, open Export conditions and click Add export condition.
  3. Set the condition: Current value, Before transformations, not empty.
    Not-empty export condition for description
    The not-empty operator is set in Export conditions; if description is empty, the JSON node is omitted.
  4. Save the value settings.

Before / After

Before

source data
{"sku": "SKU-1001", "name": "Jacket", "description": ""}

After

result
{"sku": "SKU-1001", "name": "Jacket"}

Process data faster with Eofferix

Create a free account to automate catalogs and price lists around your own rules.

Sign up