Deep [object Object] Sanitizer with Proof Scan, Manifest and Quarantine Routing
Loading workflow…
Workflow Description
A fully local workflow: a Manual Trigger and a Code node emit fictional records with nested objects and arrays. The sanitizer converts every object or array valued field into a JSON.parse-able string, logging each converted path in a manifest and flagging null or empty fields. A deep proof scan then walks every value at any depth and counts literal occurrences of [object Object] with their paths. A Set node adds the record status, an If node splits clean from infected records, NoOp nodes mark both lanes, a two-input Merge rejoins them and a final Code node emits one aggregated proof report.
How it works
- 1.Manual Trigger starts the run
- 2.Code emits three demo records: nested-clean, one containing the literal [object Object], one with empty id and field
- 3.Code serializes each object/array field with JSON.stringify and builds a manifest plus empty-field list
- 4.Code performs a deep scan counting [object Object] occurrences and paths
- 5.Set adds status and isClean with includeOtherFields enabled
- 6.If routes zero occurrences to Clean Output, others to Quarantine Bin
- 7.Merge (append, 2 inputs) rejoins both lanes
- 8.Final Code node in runOnceForAllItems emits a single aggregated report
Use cases
- Cleaning API output before pushing it into string fields or templates
- Proving output is free of [object Object] before sending downstream
- Quarantining malformed records instead of passing them silently
- Auditing which fields were stringified
Requirements
- n8n 2.47.x with core Code, Set, If, Merge, NoOp nodes
- No credentials and no network access
- For production, replace the sample Code node with your own source
Setup and testing in n8n
- Import the JSON and open the workflow
- Click Test workflow
- Confirm the final report shows totalRecords=3 and quarantinedRecords=1
- Remove the [object Object] text from the sample and confirm proofPassed becomes true
- Add an empty {} record and confirm it is reported without errors
Service Value
Ready-made workflow template for automation delivery and service execution.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (10)
Manual Trigger
Manual Trigger
Load Sample Records
Code
Serialize Object Fields
Code
Deep Proof Scan
Code
Build Proof Report
Set
If Fully Clean
If
Clean Output
No Op
Quarantine Bin
No Op
Merge Branch Reports
Merge
Aggregate Final Report
Code
Sticky Golden Rule
Sticky Note
Sticky Proof And Routing
Sticky Note
Sticky Setup
Sticky Note
Fresh workflows, straight to your inbox
Get newly published DROPIDEA workflows, a clear overview of what they do, and a link to explore them.
- New workflows
- Clear overviews
- Setup guides