Getting Started with the Mezmo Platform
Manage Source Data
Build Telemetry Pipelines
Monitor Data and Create Alerts
Pipeline Destinations
Pipeline Processors
Reference
Other Mezmo Resources
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Compact Fields Processor
Copy Markdown
Open in ChatGPT
Open in Claude
Connect to Cursor
Connect to VS Code
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.
| Option | Description | Example |
|---|---|---|
| Fields | The field or fields to remove empty values from | . |
| Compact Options | Select to enable Compact for Arrays in the field, Objects in the field, or both | On / Off |
Example
Before
JSON
{ "baz": [], "foo": "bar", "quux": { "corge": {}, "grault": 1 }, "qux": {}}Compact Options
| Option | Value |
|---|---|
| Field | . |
| Compact Array | On |
| Compact Object | On |
After
JSON
{ "foo": "bar", "quux": { "grault": 1 }}Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on Feb 22, 2023
Was this page helpful?
Next to read:
Data Profiler ProcessorDiscard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message