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...
Output✓
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.
Works with:
- API responses
- Nested JSON
- Arrays & objects
Example: input → output
Input / OutputInputOutput
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
- Rename KeysRename known keys or convert key casing without changing the underlying values
- Find & ReplaceFind and replace matching keys or values across JSON using broad search patterns
- FilterFilter rows, items, keys, or values by explicit conditions and keep only the matches you want
- Flatten / NestConvert nested objects to flat key paths or rebuild them using delimiter and casing rules
- Pick FieldsKeep only a known allowlist of fields and remove everything else
Advanced usage (optional)
Enrich Fields
v1.0.0Structure
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:
| Expression | Description | Example | ||
|---|---|---|---|---|
uuid() | Generate a unique UUID | "550e8400-e29b-41d4-a716-446655440000" | ||
now() | Current ISO timestamp | "2026-03-03T07:20:35.200Z" | ||
fieldName | Reference another field | Uses the value of fieldName | ||
| `field \ | \ | "default"` | Fallback if field is missing | Returns "default" if field is undefined |
"literal" | A literal string value | "browser" | ||
123 | A literal number | 123 |
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:
id→uuid(),ts→now()
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:
domain→component || "browser"
Output:
[
{ "event": "worker_run_start", "component": "pipeline", "domain": "pipeline" },
{ "event": "page_load", "domain": "browser" }
]Configuration
| Name | Type | Default | Description |
|---|---|---|---|
| Mode | enum | each | Apply to each item in an array, or to the root object directly each root |
| Fields to Add | column-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.Output✓
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]