JSON

How to omit an empty JSON field in Eofferix

2026-06-20
Task

A JSON object has an optional description field. When it is empty, the result should omit only that key and keep the product object.

Short answer

In the description value settings, open Export conditions. Select For the node, Current value, Before transformations, and Not empty. If description is empty, its key disappears from JSON while the parent object remains.

How to do it in Eofferix

  1. In the JSON editor, open the settings of the description value.
    Opening the description value settings in the Eofferix JSON editor
    The description value whose settings are being opened is highlighted in red.
  2. In the settings window, open Export conditions and click Add export condition.
  3. Select For the node. The condition will control only the description key, not the whole object.
  4. Set the condition to Current value, Before transformations, and Not empty.
    For the node and Not empty export condition for description
    For description, the settings use For the node, Before transformations, and Not empty.
  5. Save the value settings. Run a small test export and verify the downloaded JSON. You can use the preview as an additional check.

Before / After

Before

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

After

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

What to remember

When description is empty, Eofferix omits only the description key. The sku and name fields and the object itself remain. If you select For the whole element on a value inside an array, Eofferix may exclude the whole array object. Use that scope only when the entire record should be removed. A non-empty description remains unchanged.

Process data faster with Eofferix

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

Sign up