Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mezmo-9a59581a-mintlify-926f893d.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Description

Removes all nested fields recursively that contain empty arrays or objects from a specified field. This processor includes options to remove values from Arrays, and from Objects.

Use

This processor is particularly useful in cleaning up null values and other empty spaces within messages.

Configuration

There are two options to configure for this processor.
OptionDescriptionExample
FieldsThe field or fields to remove empty values from.
Compact OptionsSelect to enable Compact for Arrays in the field, Objects in the field, or bothOn / Off

Example

Before

{
  "baz": [],
  "foo": "bar",
  "quux": {
    "corge": {},
    "grault": 1
  },
  "qux": {}
}

Compact Options

OptionValue
Field.
Compact ArrayOn
Compact ObjectOn

After

{
  "foo": "bar",
  "quux": {
    "grault": 1
  }
}