Write formatted JSON with the Architect JSON literal editor
You can use the JSON literal editor in Architect to input JSON so that you can set literal values directly. This process eliminates the need to use the JsonParse or ToJson methods and then set values by expression. Note: The Architect JSON type adheres to strictly to JSON rules, and not JavaScript Object literal rules. This means that you must wrap keys and string values in double-quotes.
JSON Values
Set JSON values by using the JsonParse or ToJson function in expression mode or by inputting JSON data directly into the JSON literal editor.
JSON Editor
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.
Valid JSON types
The JSON literal editor accepts these types:
- String: Surrounded by double quotes
- Number: Integer or decimal value
- Boolean: Lower-case, no quotes required
- Null
- Array: Can contain values of any type on this list
- Object: Can contain values of any type on this list. Keys must be surrounded by double-quotes.
Validation
If the JSON literal editor determines that the text is invalid, a validation error appears. In some cases, 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.