autana-jsonata-transform

2.0.2 • Public • Published

autana-jsonata-transform

Use the power of JSONata to easily transform Node-RED messages.

Installation:

npm install autana-jsonata-transform

Usage:

Just enter the template as a valid JSONata expression and enjoy the transformation.

This node can receive the template from:

  • static: template field value from node configuration
  • dynamic: from msg.template

Template example:

{
    "topic": topic & "_ceil",
    "payload": $ceil(payload)
}

Output:

By default the transformation result is saved in msg.payload. But you can decide the field, and inclusive use flow or global context instead.

Package Sidebar

Install

npm i autana-jsonata-transform

Weekly Downloads

12

Version

2.0.2

License

ISC

Unpacked Size

15.4 kB

Total Files

8

Last publish

Collaborators

  • ggsotillo