Nube iO - Rubix Wires: JSON Nodes

Rubix Wires: JSON Nodes


The `JSON` category contains nodes that are used to parse and manipulate data to and from standardised JSON objects and JSON strings.

JSON

JSON-Filter-Multiple

This node extracts properties/values from JSON data by string key/identifier.  A node output is created for each key/identifier.

Inputs

  1. input - JSON input data.

Outputs

  1. error - String error message.
  2. json-output - JSON output of parsed `input` JSON.  This will be '{}' (an empty JSON) if the `input` JSON is not valid.
  3. 1 | - Output value corresponding to the first configured JSON key/identifier.  Output value can by any data type. 
  4. 2 | - Output value corresponding to the second configured JSON key/identifier.  Output value can by any data type. 
  5. # | - Output value corresponding to the #th configured JSON key/identifier.  Where # is any subsequent output added from the node settings.  Output value can by any data type. 

Settings

  1. Name - Name of the node.
  2. Number of outputs - Configures the number of outputs.
  3. Output 1/ Output 2/ Output 3 - Key/identifier setting for each output.  If no identifier is found within JSON `input`, `null` will be output.

Operation

Data is extracted from `input` JSON corresponding to configured key/identifier.  An output is created for each configured key/identifier.  If no matching key/identifier is found within JSON `input` data, the corresponding key/identifier output will be `null`.  Output values can by any data type. 

Related Articles:

  1. Rubix Wires: Working with Nodes

    • Related Articles

    • Rubix Wires: Point Nodes

      This article describes the Rubix Wires nodes that are in the Point category.   Point The `Point` category contains nodes that produce constant or variable data; there are nodes for each Rubix Wires data type. Bool-Constant This node outputs a fixed ...
    • Rubix Wires: Overview

      Introduction to Rubix Wires Rubix Wires is Nube-iOs browser based logical programming environment. It is a function block flow editor, so there is no coding required to make advanced control and monitoring programs. This type of visual programming ...
    • Rubix Wires: Getting Started Guide

      Introduction to Rubix Wires Rubix Wires is Nube-iOs browser based logical programming environment.  It is a function block flow editor, so there is no coding required to make advanced control and monitoring programs.  This type of visual programming ...
    • Rubix Wires: Protocols/MQTT Nodes

      This article describes the Rubix Wires nodes that are in the Protocols/MQTT category. Protocols/MQTT The `Protocols/MQTT` category contains nodes that are used in sending and receiving data using the MQTT standard protocol. Client This node connects ...
    • Rubix Wires: LoRa Sensor Nodes

      This article describes the Rubix Wires nodes that are in the LoRa category.  Preparation Rubix Wires: Getting Started Guide Rubix Platform: Adding and Editing Wireless LoRa Droplet Sensors Rubix Platform: Adding and Editing Wireless Microedge Sensors ...