Change JSON
Sets one value in JSON text, removes one, or adds an item to a list in it, and gives the changed JSON back. The path is written as in Read JSON: user.email, items[0].title. Setting a value whose parents are missing makes them.
In the editor, press Space on the canvas to add a step, then open Conditions > Text & math, or type its name. In Simple mode it's under Show all, and search finds it.
Settings
JSON
Text RequiredUsually wired from HTTP Request's Response, Read Text File or Build JSON.
Path
A file or folder path RequiredWhere the value is, e.g. user.email or items[2].
Action
A choiceValue
TextValue type
A choiceOutputs
Values the step gives to the steps after it. In the Graph view, drag a wire from an output to another step's field.
| Output | Gives | What it is |
|---|---|---|
| JSON | Text | The changed JSON; the JSON as it was when it couldn't be changed. |
| Found | Yes or no | False when the JSON isn't valid or the path couldn't be reached. |
| Error | Text | Why it couldn't be changed; empty when it worked. |