Introduction
In our last session, you successfully built and activated your first automated workflow, which fetches data from the NASA API on a schedule. This established a foundational Trigger -> Action pattern. We ended by noting the rich data structure returned by the API, visible in the execution log.
Today, we will dissect that structure. The goal is to examine the JSON data that flows between nodes so you can understand precisely how n8n represents and handles information. For your objective of automating CI/CD pipelines, this skill is non-negotiable, as you'll constantly be working with complex JSON payloads from Git webhooks and API responses from tools like Jenkins or GitHub Actions. The principles we cover here are universal.
The Anatomy of Data Flow
At its heart, an n8n workflow is a data processing pipeline. Nodes are connected to pass data from one to the next. The data is formatted using JSON (JavaScript Object Notation), a lightweight and human-readable standard that you're likely familiar with from API interactions or configuration files.
In Python, you work with dictionaries and lists. JSON has direct equivalents:
- A JSON object is a collection of key-value pairs, analogous to a Python
dict.
{"name": "John Doe", "verified": true} - A JSON array is an ordered list of values, analogous to a Python
list.
["build", "test", "deploy"]
The video below provides a quick, clear introduction to how JSON's key-value pairs are represented within the n8n interface.
Master n8n JSON & Data Transformation in 30 Minutes (Most Valuable n8n Skill)
This video by Jono Catliff, "Master n8n JSON & Data Transformation", effectively breaks down the basics of JSON in the context of n8n.
Watch the first section of the video, from the beginning to the explanation of key-value pairs. Pay attention to how the "key" is a consistent reference, while the "value" is the variable data.
The n8n Data Structure: An Array of Items
While the data itself is JSON, n8n wraps it in a specific structure to enable powerful features. Data doesn't flow as a single, raw JSON object. Instead, n8n processes data as an array of items. Each item in this array represents a distinct unit of work that will be processed by subsequent nodes.
This is a critical concept. If a node outputs 10 results, it doesn't pass one giant object with 10 results inside. It passes an array of 10 separate items, and the next node will, by default, execute once for each of those 10 items. This is how n8n handles looping and iteration automatically.
The diagram below shows a simplified view of this. A JSON object arrives at "Your Custom Node", is transformed, and the new JSON object is passed to the "Next Node". Imagine the "Previous Node" sent two items; "Your Custom Node" would run twice, once for each item.

To understand the exact structure, let's watch a detailed explanation from the n8n team.
Data Structures in n8n by Harshil Agrawal
In this official n8n video, "Data Structures in n8n", Harshil Agrawal explains the specific way n8n structures data. This is perhaps the most important conceptual video for mastering the tool.
Please watch these key segments: Overall Structure: This part introduces the items array and the nested json object. Notice the analogy of boxes within boxes. Under the Hood: Here, you'll see how the n8n UI simplifies the view by hiding the json key, and why it's important to know it's there. Why It Matters: This crucial section demonstrates what happens when data doesn't follow the n8n structure, showing why this convention is essential for processing all incoming data correctly. Quick Summary: A final recap of the structure.
To summarize the video's core message, all data moving between nodes is contained within a structure that looks like this in its full form:
[
{
"json": {
"key1": "value1",
"key2": "value2"
},
"binary": {}
},
{
"json": {
"key1": "another_value1",
"key2": "another_value2"
},
"binary": {}
}
]
This is an array (the outer [...]) of items (the {...} objects). Each item contains a json key, which holds the data payload you typically care about. If you were handling files, the binary property would be used. In Python terms, this is a list of dicts.
Hands-On: Inspecting Your Workflow's Data
Now, let's apply this knowledge. Open the n8n workflow you created in the last lesson with the Schedule Trigger and NASA node.
- Execute the workflow by clicking Execute workflow.
- Once it completes, click on the
NASAnode to open its details view. - On the right side, you'll see the Output.
This output panel is your primary tool for examining data. As the documentation explains, there are three views you can toggle between: Table, JSON, and Schema.

Let's explore these views now.
This documentation provides a concise overview of how data is structured and can be inspected in n8n.
Focus on the section View data at every stage. As you read, switch between the Table, JSON, and Schema views in your own n8n editor to see how they correspond to the descriptions.
In the JSON view of your NASA node's output, you should now be able to clearly identify the structure explained in the video: an outer array [] containing one or more item objects {}, each with a json key inside. This is the ground truth of your data.
Data Types within JSON
Finally, within the json object, the values themselves have different types. Understanding these types is crucial for performing operations later. The next video segment gives a fantastic overview of these types and how to identify them in the n8n interface.
Master n8n JSON & Data Transformation in 30 Minutes (Most Valuable n8n Skill)
We return to Jono Catliff's video to focus on the different types of data you'll find within a JSON payload.
Watch the segment from data types in JSON. Pay close attention to how n8n uses icons (e.g., a box for an object, A for text, a checkmark for boolean) in the Schema view to represent these different types. This visual shorthand is incredibly useful.
As you saw, JSON supports basic types that map directly to their Python equivalents:
- String: Text (e.g., a commit message). Python
str. - Number: Integers or floats (e.g., a build number). Python
int,float. - Boolean:
trueorfalse(e.g., a build success flag). Pythonbool. - Array: A list of items (e.g., a list of changed files). Python
list. - Object: A collection of key-value pairs (e.g., details about the committer). Python
dict.
Being able to identify these types in the Schema or JSON view will be vital when you start writing expressions to transform this data.
Conclusion
In this lesson, we moved from simply seeing data to truly understanding its structure. You've learned that n8n operates on an array of items, with each item containing a json object that holds the actual payload. This structure is the key to n8n's ability to automatically iterate over multiple results. You also learned to use the Table, JSON, and Schema views to inspect this data and identify its fundamental types.
Key Takeaways:
- Data flows between n8n nodes as a JSON array of items.
- Each item is an object with a
jsonkey holding the data payload from the previous node. - The JSON view in the execution log reveals this true, underlying structure.
- The Table and Schema views provide simplified, user-friendly ways to inspect data and its types (string, number, boolean, array, object).
- This structure is analogous to a Python list of dictionaries, a familiar pattern for you.
In our next lesson, we will build directly on this knowledge. Now that you can see and understand the data's structure, you will learn how to access specific values within it using n8n expressions, including dot and bracket notation. This will allow you to start manipulating and using the data your workflows retrieve.