Create an object from input values and a JSON template
{{input}}
). Non-string inputs are automatically converted to strings.object[]
if the template defines an array, otherwise it will be object
.{{input}}
). The template must be valid JSON.Values wrapped in quotes (e.g. "{{input}}"
) will be treated as strings and escaped appropriately. Values without quotes will be inserted directly as JSON values.name
and job
inputs.age
input.Can I use the Object Block to create an array?
How are input values escaped?
"{{input}}"
) are escaped as strings using JSON.stringify()
JSON.stringify()
JSON.stringify()
to properly escape themWhat happens to null or undefined input values?
null
in the output JSON.