Enrich Fields (Free Online Tool)

Add or default fields on objects using expressions, generated values, and fallbacks

Paste your JSON → Get results instantly (no signup)

⚡ Instant resultsNo signupRuns in your browser
Try examples:

Enrich this data with additional derived fields and add ID and timestamp to eac...

[
{
"event": "worker_run_start",
"component": "pipeline"
},
{
"event": "debug_config_synced",
"component": "pipeline"
}
]
Output
1[
2 {
3 "event": "worker_run_start",
4 "component": "pipeline",
5 "id": "550e8400-e29b-41d4-a716-446655440000",
6 "ts": "2026-03-03T07:20:35.200Z"
7 },
8 {
9 "event": "debug_config_synced",
10 "component": "pipeline",
11 "id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
12 "ts": "2026-03-03T07:20:35.200Z"
13 }
14]

Love the result?

Use this exact pipeline in your app, backend, or LLM workflow.

No setup needed. Works with curl, Node, Python.

Uses example data. For edited input, copy from the playground.

Read integration guide

Works with:

  • API responses
  • Nested JSON
  • Arrays & objects

Example: input → output

Input / Output
Input
[
{
"event": "worker_run_start",
"component": "pipeline"
},
{
"event": "debug_config_synced",
"component": "pipeline"
}
]
Output
[
{
"event": "worker_run_start",
"component": "pipeline",
"id": "550e8400-e29b-41d4-a716-446655440000",
"ts": "2026-03-03T07:20:35.200Z"
},
{
"event": "debug_config_synced",
"component": "pipeline",
"id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
"ts": "2026-03-03T07:20:35.200Z"
}
]

Related tools

Advanced usage (optional)

Enrich Fields

v1.0.0
Structure
objectarray

Description

Enrich Fields

Add or default fields on objects using expressions like uuid(), now(), and field fallbacks.

Use Cases

  • Add unique IDs to each item in an array
  • Add timestamps to track when data was processed
  • Provide default values for missing fields
  • Derive new fields from existing data

Configuration

Mode

  • each - Apply fields to each item in an array
  • root - Apply fields to the root object directly

Fields to Add

Map field names to expressions. Supported expressions:

ExpressionDescriptionExample
uuid()Generate a unique UUID"550e8400-e29b-41d4-a716-446655440000"
now()Current ISO timestamp"2026-03-03T07:20:35.200Z"
fieldNameReference another fieldUses the value of fieldName
`field \\"default"`Fallback if field is missingReturns "default" if field is undefined
"literal"A literal string value"browser"
123A literal number123

Examples

Add ID and timestamp to each item

Input:

[
  { "event": "worker_run_start", "component": "pipeline" },
  { "event": "debug_config_synced", "component": "pipeline" }
]

Config:

  • Mode: each
  • Fields: iduuid(), tsnow()

Output:

[
  { "event": "worker_run_start", "component": "pipeline", "id": "550e8400-e29b-41d4-a716-446655440000", "ts": "2026-03-03T07:20:35.200Z" },
  { "event": "debug_config_synced", "component": "pipeline", "id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8", "ts": "2026-03-03T07:20:35.200Z" }
]

Add domain with fallback

Input:

[
  { "event": "worker_run_start", "component": "pipeline" },
  { "event": "page_load" }
]

Config:

  • Mode: each
  • Fields: domaincomponent || "browser"

Output:

[
  { "event": "worker_run_start", "component": "pipeline", "domain": "pipeline" },
  { "event": "page_load", "domain": "browser" }
]

Configuration

NameTypeDefaultDescription
ModeenumeachApply to each item in an array, or to the root object directly each root
Fields to Addcolumn-mapping(required)Map field names to expressions. Supported: uuid(), now(), fieldName, field || "default", "literal", 123

Examples

AI Prompt
Enrich this data with additional derived fields and add ID and timestamp to each item.
[
{
"event": "worker_run_start",
"component": "pipeline"
},
{
"event": "debug_config_synced",
"component": "pipeline"
}
]
Output
1[
2 {
3 "event": "worker_run_start",
4 "component": "pipeline",
5 "id": "550e8400-e29b-41d4-a716-446655440000",
6 "ts": "2026-03-03T07:20:35.200Z"
7 },
8 {
9 "event": "debug_config_synced",
10 "component": "pipeline",
11 "id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
12 "ts": "2026-03-03T07:20:35.200Z"
13 }
14]
Config
Mode
each
Fields to Add
1[
2 {
3 "columnName": "id",
4 "expression": "uuid()"
5 },
6 {
7 "columnName": "ts",
8 "expression": "now()"
9 }
10]

API Usage

POST /api/v1/utilities/structure.enrich-fields
Example:
curl -X POST https://your-domain.com/api/v1/utilities/structure.enrich-fields \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"inputs":{"primary":[{"event":"worker_run_start","component":"pipeline"},{"event":"debug_config_synced","component":"pipeline"}]},"config":{"mode":"each","fields":[{"columnName":"id","expression":"uuid()"},{"columnName":"ts","expression":"now()"}]}}'
Response
1[
2 {
3 "event": "worker_run_start",
4 "component": "pipeline",
5 "id": "550e8400-e29b-41d4-a716-446655440000",
6 "ts": "2026-03-03T07:20:35.200Z"
7 },
8 {
9 "event": "debug_config_synced",
10 "component": "pipeline",
11 "id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
12 "ts": "2026-03-03T07:20:35.200Z"
13 }
14]