Rename JSON Fields in n8n
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 exerciseRelated Content
Continue your learning journey with these related challenges and guides:
Learn how to use the HTTP Request node in n8n to connect to any API. This guide covers all HTTP methods (GET, POST, PUT, PATCH, DELETE), sending data, and handling responses.
Learn how to add your OpenAI API key to n8n in under 5 minutes. Step-by-step guide to creating an API key and configuring the OpenAI node.
Learn how to trigger n8n workflows from incoming emails using Gmail Trigger and extract key email fields for processing.
Learn to extract nested JSON fields into a flat structure using n8n's Edit Fields node and expressions.
Learn how to fetch and parse API data in n8n using the HTTP Request node. Practice extracting nested JSON fields into clean output.