Verified Access Path Generator for Nested JSON Payloads
Loading workflow…
Workflow Description
A fully local workflow that turns any nested JSON payload into a list of usable access paths. A Code node emits fictional demo data as a JSON string; the next Code node normalizes the type with typeof, parses strings inside try/catch, then walks the whole tree (cycle-safe, depth-capped) producing one item per leaf with the dotted path, value type, a properly serialized sample via JSON.stringify (never [object Object]) and a paste-ready n8n expression. Each path is re-evaluated against the original payload, an IF routes resolving paths to Set and broken ones to NoOp, Merge rejoins both, and a final Code node returns one report with counts and broken paths. No network, no credentials.
How it works
- 1.Manual Trigger sends one empty item to the sample data node.
- 2.Sample Nested Payload outputs a fictional nested payload as a JSON string in payloadRaw.
- 3.Parse Payload & Generate Paths checks the type, parses inside try/catch, and traverses the tree to emit one item per leaf.
- 4.Every generated path is re-evaluated on the original payload to set isValid.
- 5.The IF node routes valid paths (true output) and broken ones (false output).
- 6.Set adds status and readyExpression while keeping original fields; NoOp documents broken paths.
- 7.Merge in append mode joins both branches on separate inputs.
- 8.Build Path Report runs once for all items and returns a single report with counts and ready expressions.
Use cases
- Discover correct paths inside a nested webhook payload before writing expressions
- Debug expressions returning undefined or [object Object]
- Document a nested API payload schema for your team
- Detect keys containing dots that need bracket access
Requirements
- n8n 2.47.7 or newer
- No credentials and no network nodes
- For real data: replace the sample node with a source providing payloadRaw (string) or payload (object)
Setup and testing in n8n
- Import the workflow JSON and click Execute Workflow.
- Check the generator node produced 12 items with correctly serialized samples.
- Open Build Path Report and verify countsMatch=true and brokenPaths contains order.meta.tag.name.
- Edge case: break the sample string into invalid JSON and confirm an error item appears instead of a crash.
- Edge case: pass payload as a real object instead of a string and confirm payloadInputType becomes object.
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 (8)
Manual Trigger
Manual Trigger
Sample Nested Payload
Code
Parse Payload & Generate Paths
Code
Path Resolves?
If
Format Valid Path
Set
Broken Path (documented)
No Op
Merge Path Branches
Merge
Build Path Report
Code
Note Input Stage
Sticky Note
Note Traversal Stage
Sticky Note
Note Routing And Report
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