inject-path
Latest Version | v1.0.0 |
Input Content Type | application/json |
Output Content Type | application/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
}
}
}