@sammachin/node-red-dragonpbx 1.0.0
A Node-RED node to append JSON objects to an array in msg.callScript
node-red-contrib-json-appender
A Node-RED node that appends a JSON object to an array in msg.callScript.
Installation
Run the following command in your Node-RED user directory (typically ~/.node-red):
npm install node-red-contrib-json-appender
Usage
- Add the "JSON Appender" node to your flow.
- Configure the JSON object to append.
- Set whether to create the array if it's missing.
- Connect the node to your flow.
Features
- Append a predefined JSON object to an array in msg.callScript
- Option to create the array if it doesn't exist
- Validation of the JSON object during configuration
Example
Here's a basic example of how to use this node:
- Inject a message with a payload
- Pass it through the JSON Appender node configured with your desired JSON object
- The JSON object will be appended to msg.callScript
License
MIT