unwrap-key-value

If the input message is a KeyValue, the unwrap-key-value transform function extracts the KeyValue’s key or value and makes it the record value.

Example

Given the input:

{
  "key": {
    "keyField": "key"
  },
  "value": {
    "valueField": "value"
  }

With an agent configuration of:

- name: "Unwrap key value"
  type: "unwrap-key-value"
  input: "input-topic" # optional
  output: "output-topic" # optional
  configuration:
    unwrapKey: false

The output would be:

{
  "valueField": "value"
}

Topics

Input

  • Structured only text ?

  • Implicit topic ?

Output

  • Structured text ?

  • Implicit topic ?

Configuration

Checkout the full configuration properties in the API Reference page.

Last updated