Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
node-red-contrib-json
Advanced tools
Readme
A powerful Node-RED nodes for processing JSON objects.
From your node-red
directory:
npm install node-red-contrib-json
Note: the jq
engine needs to be able to find and run the jq
command line program.
See the jq site for installation instructions.
Create a new contrib-json
node, then configure it by chooing an engine and specifying an expression.
Whenever a message arrives, the node will apply the expression using the selected engine. The output is then sent via the outgoing msg.payload.
These engines are currently supported. Examples of each are integrated into the node itself.
Site: JSONSelect
This is the default engine. JSONSelect uses a CSS-like selector syntax. Outputs a (possibly empty) array of results.
Why use JSONSelect?
Be careful: Like CSS, recursive descent is the default behavior.
Site: JSONPath
Uses an XPath-like selector syntax. Outputs a (possibly empty) array of results.
Why use JSONPath?
Site: jq
Uses a rich custom compositing language, which includes functions and operators for manipulating data. Outputs one or more messages (one for each result).
Why use jq?
Be careful: this engine shells out to a command-line process, which incurs a JSON serialization and deserialization penalty.
Site: json-select
Uses a JSONStream based path (or equivalent JSON object) to match and manipulate objects. Outputs a message containing the result (may be an array).
Why use json-select?
FAQs
A Node-RED node for processing JSON.
The npm package node-red-contrib-json receives a total of 60 weekly downloads. As such, node-red-contrib-json popularity was classified as not popular.
We found that node-red-contrib-json demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.