> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vectorshift.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Read JSON Values Node

> Read multiple values from a JSON object

<img src="https://mintcdn.com/vectorshift/B2X2zpDX7crEnhCG/images/platform/pipelines/data-transformation/read-json-values.png?fit=max&auto=format&n=B2X2zpDX7crEnhCG&q=85&s=278b823fee7525d60bee60383c32b895" alt="Read JSON Values" width="530" height="307" data-path="images/platform/pipelines/data-transformation/read-json-values.png" />

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}}`

<img src="https://mintcdn.com/vectorshift/B2X2zpDX7crEnhCG/images/platform/pipelines/data-transformation/read-json-values-example.png?fit=max&auto=format&n=B2X2zpDX7crEnhCG&q=85&s=f005690dce6abceb47309cb0f53f0b32" alt="Read JSON Values Example" width="1904" height="834" data-path="images/platform/pipelines/data-transformation/read-json-values-example.png" />
