flatten
Flatten nested JSON Objects and Arrays into a single JSON Object containing only top-level fields.
Field Name | Description | Type | Default |
---|---|---|---|
condition | Only run this action if the condition the specified condition is met | expression | - |
fields | The list of fields that should be flattened if present | array of fields | - |
all-fields | Flatten all fields in the object | bool | false |
preserve-empty-arrays | Preserve empty arrays | bool | true |
preserve-empty-objects | Preserve empty objects | bool | true |
separator | Set the string to separate keys in the flattened object | string | - |
warn-on-missing | Emit a warning if a field is missing but was expected to be removed | bool | false |
condition
Only run this action if the condition the specified condition is met
Type: expression
fields
The list of fields that should be flattened if present
Type: array of fields
all-fields
Flatten all fields in the object
Type: bool
preserve-empty-arrays
Preserve empty arrays
Type: bool
preserve-empty-objects
Preserve empty objects
Type: bool
separator
Set the string to separate keys in the flattened object
Type: string
warn-on-missing
Emit a warning if a field is missing but was expected to be removed
Type: bool