UNPKG

@sammachin/node-red-dragonpbx

Version:

A Node-RED node to append JSON objects to an array in msg.callScript

36 lines (23 loc) 874 B
# 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 1. Add the "JSON Appender" node to your flow. 2. Configure the JSON object to append. 3. Set whether to create the array if it's missing. 4. 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: 1. Inject a message with a payload 2. Pass it through the JSON Appender node configured with your desired JSON object 3. The JSON object will be appended to msg.callScript ## License MIT