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