Easy Tech Tuts
n8n

How to Add JSON in n8n, Put & Paste Json File Easily 2026

By Impran M N

Sometimes it's faster to paste structured JSON directly into n8n rather than building it field by field, and the platform supports that through a toggle available on nodes like Edit Fields. This guide covers switching to raw JSON mode, pasting your data in, and checking that it parses correctly.

01Add an Edit Fields or Code node

Place one of these nodes onto your canvas depending on how you want to work with the JSON.

02Switch to JSON input mode

Find the toggle inside the node's settings that switches from individual fields to a raw JSON text box.

03Paste your JSON data

Enter your structured JSON object or array directly into the text field.

04Check for formatting errors

Review the data preview pane for any syntax issues before moving on.

05Connect it downstream

Route the parsed JSON output into your next workflow steps once it looks correct.

FAQ

Frequently asked questions

Which n8n nodes let me paste raw JSON?

The Edit Fields (Set) node and the Code node both support entering or working with raw JSON data.

Why would I paste JSON instead of building fields manually?

It's often faster when you already have structured data ready and don't want to recreate it field by field.

How do I know if my pasted JSON is valid?

The data preview pane will typically flag formatting issues if your JSON doesn't parse correctly.

Can I use pasted JSON as mock data for testing?

Yes, pasting static JSON is a common way to test workflow logic before connecting a live data source.

Watch the full walkthrough

The same steps, demonstrated on screen from start to finish.