Read JSON
Turn JSON text into values you can reach into with dots.
data.json reads JSON, such as a variable that holds some, and keeps it for this run as a document.
Settings
| Setting | What it does |
|---|---|
| JSON | The text, such as {var.config}. |
| Save as | The name to keep it under. The default is data. |
Ways out
| Way out | Taken when |
|---|---|
Read | It was JSON. |
Not JSON | It wasn't. Why is {error.message}. |
Produces
{temp.name}, reached into with dots: {temp.data.items.0.title} is the first item's title, and {temp.data.items.length} is how many there are.
Notes
- An API's answer doesn't need this: Send an API request already reads it as
{http.body}. - A document written into a message comes out as JSON again, so
{temp.data.items}can be sent on to another API.