json.encode action
This trigger action will take an object (or reference to an object) and JSON encode it to a string.
Action
This trigger action is found under the String heading.
Canvas
When dragged onto the canvas, the appearance of the action is a rectangle with two routing points.
The left routing point (red) is the failure route. This route will be taken if there is an error during execution.
The right routing point (green) is the success route. This route will be taken if action executes successfully.
Form
Parameters
Name |
Type |
Required |
Descriptions |
---|---|---|---|
Input |
Object |
Yes |
The object (or reference to the object) to be JSON encoded. |
Action variables
Name |
Type |
Description |
---|---|---|
$(action.X.value) |
String |
The resulting string from JSON encoding the input object. |