Skip to main content

inject-path

Latest Versionv1.0.0
Input Content Typeapplication/json
Output Content Typeapplication/json

The inject-path transformer nests the data message payload as a child object of the path of the data message. If the path has multiple segments, each will be represented as a nested layer. The path will remain unchanged.

Example Usage

    transformer:
type: inject-path
version: v1

Example Input

Path: /sensor0/temp

{
"celsius": 32
}

Example Output

Path: /sensor0/temp

{
"sensor0": {
"temp": {
"celsius": 32
}
}
}