Skip to content
Data & Databases

Deep [object Object] Sanitizer with Proof Scan, Manifest and Quarantine Routing

10 nodes 107 3 Manual trigger
Download

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. 1.Manual Trigger starts the run
  2. 2.Code emits three demo records: nested-clean, one containing the literal [object Object], one with empty id and field
  3. 3.Code serializes each object/array field with JSON.stringify and builds a manifest plus empty-field list
  4. 4.Code performs a deep scan counting [object Object] occurrences and paths
  5. 5.Set adds status and isClean with includeOtherFields enabled
  6. 6.If routes zero occurrences to Clean Output, others to Quarantine Bin
  7. 7.Merge (append, 2 inputs) rejoins both lanes
  8. 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

  1. Import the JSON and open the workflow
  2. Click Test workflow
  3. Confirm the final report shows totalRecords=3 and quarantinedRecords=1
  4. Remove the [object Object] text from the sample and confirm proofPassed becomes true
  5. 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

Manual Trigger Code Set If No Op Merge

Details

Trigger Manual trigger
Nodes 10
Apps 6
Views 107
Downloads 3

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (10)

/

Manual Trigger

Manual Trigger

#1

Load Sample Records

Code

#2

Serialize Object Fields

Code

#3

Deep Proof Scan

Code

#4

Build Proof Report

Set

#5

If Fully Clean

If

#6

Clean Output

No Op

#7

Quarantine Bin

No Op

#8

Merge Branch Reports

Merge

#9

Aggregate Final Report

Code

#10

Sticky Golden Rule

Sticky Note

#11

Sticky Proof And Routing

Sticky Note

#12

Sticky Setup

Sticky Note

#13
Stay in the loop

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

Be first to discover what is new

Your name, your email, and one confirmation.

Email confirmation · Unsubscribe anytime