Duplicate Key Value to Key
Duplicate a key value to a new key.
Example
This example shows how to use the DuplicateKeyValueToKey transformation to duplicate the value of an existing key to a new key in the JSON record.
{
"operation": "duplicate_key_value_to_key",
"arguments": {
"key": "original_key",
"NewKey": "duplicated_key"
}
}
Given the input record:
{
"original_key": "some_value",
"other_field": "other_value"
}
The output record will be:
{
"original_key": "some_value",
"other_field": "other_value",
"duplicated_key": "some_value"
}