JSON To Items
Valve creating items based on values in a JSON object or array.
Use this valve to create new items from JSON structures.
Configuration
Name
Description
Default value
Mandatory
Expanded
src
Name of the property.
N/A
id_parameter
Parameter containing the id for the created item(s). Defaults to "tmp_x" where x is the index of the array of json objects.
"tmp_"
merge_with_current_item
If operating on a single JSON object (not array) it is convenient to merge values to the currrent item.
false
unescape
Turns on unescape of src. Use when source is escaped JSON.
false
{
"name": "JsonToItems",
"enabled": true,
"config": {
"src": "{{{state.body.items}}}",
"id_parameter": "id"
}
}Last updated