This node allows you to read values from a JSON based on the key(s) provided.

Node Inputs

  1. JSON string: The JSON string you want to read the values from
    • Type: Text
  2. Key(s) to read: Define the name of the JSON key(s) that you want to read
    • Type: Text

Node Outputs

  1. JSON Values: The values read from the JSON
    • Type: Text
    • Example usage: {{read_json_values_0.json_values}}
  2. Dynamic Outputs: All the keys for extraction will be treated as individual outputs.
    • Type: Text
    • Example usage: {{read_json_values_0.[key_name]}}

Considerations

  • If there is no value corresponding to the key in JSON, it will output “null”.

Example

The below example shows a pipeline that takes in a JSON string and reads the values of the key “age”.

  1. Text Node: Contains the JSON string {"name": "John Smith", "age": "25"}
  2. Read JSON Values Node: Reads the values of the key “age”
    • JSON string: {{text_0.text}}
    • Key 1 to read: age
  3. Output: display the text
    • Output: {{read_json_values_0.json_values}}