BuildcordDocs

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

SettingWhat it does
JSONThe text, such as {var.config}.
Save asThe name to keep it under. The default is data.

Ways out

Way outTaken when
ReadIt was JSON.
Not JSONIt 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.

On this page