Key Value
Key Value (key-value)
Section titled “Key Value (key-value)”Parse key-value pairs, like “k1=v1,k2=v2,….”.
Transform json
Minimal example
Section titled “Minimal example”actions: - key-value: {}JSON
{ "actions": [ { "key-value": {} } ]}Contents
Section titled “Contents”A ✓ marks a field that accepts a context variable such as
{{ VARIABLE }}.
General
Section titled “General”General
| Field | Type | Required | Description |
|---|---|---|---|
description |
string |
describe this step. | |
condition |
lua-expression (string) |
Only run this action if the specified condition is met. Examples: 2 * count() |
Input
| Field | Type | Required | Description |
|---|---|---|---|
input-field |
field (string) |
Field containing text to parse as key-value pairs. Examples: data_field |
Output
Section titled “Output”Output
| Field | Type | Required | Description |
|---|---|---|---|
remove ✓ |
boolean (bool) |
Remove the field containing the value. Default: false |
|
autoconvert ✓ |
boolean (bool) |
Convert values into numbers/bools/null when possible. Default: true |
|
multiple |
Multiple |
If there are multiple k-v pairs with the same key, choose which one to use E.g. “a=1,b=2,b=3’. Allowed values: first, last, array |
Parsing
Section titled “Parsing”Parsing
| Field | Type | Required | Description |
|---|---|---|---|
delim |
string |
The delimiter between pairs, defaults to comma. | |
key-value-delim |
string |
The delimiter between the key and the value, default equals. Default: = |
Warnings
Section titled “Warnings”Warnings
| Field | Type | Required | Description |
|---|---|---|---|
suppress-warnings ✓ |
boolean (bool) |
Suppress warnings generated by this action. Default: false |
Schema
Section titled “Schema”Multiple Options
Section titled “Multiple Options”| Value | Aliases | Name | Description |
|---|---|---|---|
first |
first | ||
last |
last | ||
array |
array |