Skip to content
  • There are no suggestions because the search field is empty.

How-To: Query and Transform JSON using JSONata via an external Node.js library

What Does This Article Cover?

  • What is a JSONata?
  • How to set it up?
  • Example
  • Other Related Material

What is a JSONata?

 

How to set it up?

The setting of the GUI interval uses a third party npm libraries "jsonata" and "run-async".  Downloading and installing Node.js and npm is covered here.  Follow these steps to import your npm library:

  • Enable expression-imports on the Settings page.
  • This will create a /appData/expression-imports folder
  • Open a command window.   Navigate to the expressions-imports folder and run the following command to install the npm packages.  This command will install the jsonata and run-async packages.
npm install jsonata run-async

Example

Configuration

Postman Collection

Filter MQTT Browser using JSONata expression.

 

Other Related Material: