Convert Object Node to Array
The Convert Object Node to Array mapping (key2array) takes a JSON object or array from the from path and transforms it into a JSON array. If the input is a JSON object, the values are extracted and put into an array. If it's already an array, it's copied as-is. The resulting array is inserted at the to path in the message.
Attributes for Convert Object Node to Array
| Attribute | Required | Description |
|---|---|---|
| from | Y | Defines the source field for the mapping. |
| to | Y | Defines where the result should be inserted. |
| Function | Y | Should be set to "Convert an object node to an array". |
| Category | Y | Must be "Message structure" |