This page contains a sample JSON response showing user data from Microsoft Entra ID (Azure AD).
Example of what you’ll see:
Identify key-value pairs
JSON is made up of key-value pairs—think of it like entries in a dictionary.
Let's analyze this response by answering a few questions. Try to answer each question on your own first, then click the accordion to check your response.
What is the "displayName" of this user?
(Hint: Look for "displayName")
"displayName": "Adele Vance"
The user's display name is Adele Vance
What type of data is stored in "id"?
(Is it a number, string, or Boolean?)
The "id" field contains a string (text) value: "id" : "3a2a1bcd-4a62-4865-b3c8-4a8e3b9f5f29"
What is the difference between "givenName" and "displayName"?
(Why might a system need both?)
"givenName" refers to the user's first name. "givenName" : "Adele"
"displayName" is typically a full name that appears in applications. "displayName" : "Adele Vance"
A system. might store both so it can show the full name in some places while using just the first name in others
What is missing from this user's data?
"mobilePhone" : null
The mobile phone numer is missing or unavailable, which is why it has a value of null
This could mean the user hasn't provided one, or it's not required in this system
What does "userPrincipalName" represent, and how is it different from "mail"?
"userPrincipalName" : "AdeleV@contoso.com" is the username used for logging in
"mail" : "AdeleV@contoso.com" is the email address used for communication
Sometimes they are the same, but in some systems, they can be different
Compare to other JSON structures
Try looking at other types of JSON! Click the links below, then review the question and answers.
Fields include "subject", "from", "to", "body", and "recievedDateTime"
Can you find the "subject" field? What about "from"?
The "subject" field contains the email's subject line
The "from" field contains the sender's details
See JSON in automation (a glimpse into Rewst)
Now that you’ve explored JSON structures, let’s look at a real example from an automation tool—Rewst!
When a workflow runs in Rewst, it generates results in JSON format, showing details about the action taken. Below is an example of a JSON result from a workflow that adds or removes a user from Microsoft Graph (Azure AD).
Here’s a sample JSON output from this type of workflow:
Breaking it down
This JSON output is from a workflow that adds a user to a group in Microsoft Graph. Let’s analyze what we see here:
What action is being performed?
(Hint: Look for the "action" key)
The "action" key shows - "action" : "add"
This means the workflow is adding something (likely a user to a group)
Which organization is this affecting?
The "organization" section contains:
The affected organization is "pedroaviary"
Who trigged this action?
(Hint: Find the "user" section)
the "user" section shows:
The user who triggered this action is Eddie.Chow@rewst.io
What does "rewst" tell us? What information does it include?
The "rewst" section contains:
This provides the Rewst app URL. This is where this automation was executed
The "execution_id" is a long, unique string - why do you think automation tools generate these?