Loading...
Loading...
Loading...
In Architect’s JSON literal editor, add JSON so that you can set literal values directly. You can also use the expression editor in Architect to add JSON via expressions.
The Architect JSON type adheres strictly to JSON rules, and not JavaScript Object literal rules, which means that you must wrap keys and string values in double quotes.
This article specifically addresses the more commonly used JSON functions: ToJson, ToJsonCollection, and JsonParse. For help with more JSON functions, see the Architect expression help.
To set JSON values, use the JsonParse or ToJson function in expression mode or enter JSON data directly into the JSON literal editor. JSON output values must have variable references.
For a JSON type variable, for example, in an Update Data action and after you select to use JSON, click Click to add JSON literal value. The JSON Editor pane opens. Then, add your JSON data directly in the editor.
JSON data type variables editor accepts these types:
You can use JSON within an expression with ToJson, toJsonCollection, and JsonParse.
When the JSON literal editor determines that the text is invalid, a validation error opens. Sometimes, the error contains positional information, which indicates at what character the validation fails. If your error contains a position number, click the message to move your cursor to the error. You can save while your JSON literal value is in error, however doing so adds validation errors to the flow and prevents you from publishing it.
The following example describes how to add a JSON variable to an Update Data action.
Get user feedback about articles.