A Node-RED node for processing JSON objects using multiple query engines: JSONSelect, JSONPath, jq, and json-select. Current stable version is 0.2.0. Release cadence is irregular; this package is in early maintenance mode. Key differentiators include support for multiple query languages in one node and the ability to choose between lightweight (JSONSelect) and powerful (jq) engines. The jq engine requires the jq command-line tool to be installed separately, which is a notable dependency compared to pure JavaScript alternatives. The node integrates into Node-RED's flow-based programming environment, allowing visual wiring of JSON transformations.
npm install node-red-contrib-jsonNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows installation, configuration, and usage of the contrib-json node with JSONSelect engine.
Install jq from https://stedolan.github.io/jq/ and ensure it is in your system PATH.
Use the '>' combinator for direct children, e.g., '.foo > .bar' instead of '.foo .bar'.
Check the engine documentation and handle output accordingly; use a Node-RED function node to convert if needed.
If you need to preserve original payload, store it in another property before this node.
Install the package in your Node-RED user directory (usually ~/.node-red): cd ~/.node-red && npm install node-red-contrib-json
Use a JSON parse node before this node to convert strings to objects.
Install jq from https://stedolan.github.io/jq/ and ensure it is available in the system PATH.