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: Dashboard Nodes

      This article describes the Rubix Wires nodes that are in the Dashboard category. Dashboard The `Dashboard` category contains nodes that interact with the Wires Dashboard.  The Wires Dashboard provides a way to interact with the nodes/flows built in ...
    • Rubix Wires: Connection Nodes

      This article describes the Rubix Wires nodes that are in the Connection category. Connection The Connection category contains nodes that can send and receive data values without the need for wire link connections. Link-Transmitter-Single This node is ...
    • Rubix Wires: Filter Nodes

      This article describes the Rubix Wires nodes that are in the Filter category. Filter The Filter category of nodes provide in-line data filtering.  For each type of Filter node, only the `input` values that meet the (node specific) filter conditions ...
    • 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 ...