Socket
Book a DemoInstallSign in
Socket

@cgignite/ignite-jsonata

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cgignite/ignite-jsonata

JSONata node for Ignite

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

@cgignite/ignite-jsonata

Node-RED node for JSONata Dynamically set the JSONata query and run over a JSON string returning the result within the message.

Message Inputs

  • msg.payload (default) = JSON string to be queried. This can be change within the node options
  • msg.jsonata = JSONata query to be used.

Message Outputs

  • msg.jsonataResult (String) = The result returned. Only returned if the JSONata query is successful otherwise will be undefined.
  • msg.jsonataStatus (String) = The status message, success or errored returned.
  • msg.jsonataByMsg (Boolean) = The message (msg.jsonata) JSONata query was used, returning true. False, if the node options (JSONata Query) was utlised. Only defined when a result (msg.jsonataResult) is returned.

Message Status

The status returned either on the message (msg.jsonataStatus) or displayed below the node when executed.

  • Success, Successful query and the msg.jsonataResult with have the result.
  • No JSONata result, The JSONata query provided no result when queried.
  • No JSONata provided, The JSONata query is missing from the message (msg.jsonata) or not set in the node options (JSONata Query).
  • Invalid JSON string, JSON string provided is invalid or malformed.
  • No JSON string provided, JSON string is missing from the message (msg.payload, default).

Note

When JSONata is set within the message (msg.jsonata) and the node options (JSONata Query) the message (msg.jsonata) has priority, the JSONata query in the node options will be ignored. Allowing a static JSONata query to be set and dynamically changed as required.

Author

Ignite Platform Team

Keywords

node-red

FAQs

Package last updated on 15 Dec 2020

Did you know?

Socket

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.

Install

Related posts