Rename JSON Fields in n8n
Difficulty
1/10Tags
EssentialsEdit Fields (Set)HTTP RequestExpressionsData Transformation
When working with APIs, the data you receive often has field names that don't match what you need. A field might be called temp when you want temperature_celsius, or nested deep inside the response when you need it at the top level.
The Edit Fields (Set) node lets you reshape data by creating new fields, renaming existing ones, or extracting values from nested structures. It's one of the most commonly used nodes in n8n.
In this challenge, you'll fetch weather data and transform the nested API response into a flat, clearly-named structure.
What you'll practice:
- Using the Edit Fields (Set) node to create new fields
- Referencing incoming data with expressions like
$json.fieldName - Extracting nested data into a flat structure
- Concatenating values in expressions
Login to see the exercise
Create an account to access challenges and track your progress.
Log in to see exercise