The Convert JSON to Dictionary action extracts the JSON data to a dictionary variable to help you read or process different nodes individually. You can also extract individual nodes to specific variables based on the data type.

For more information on how to use various JSON actions, see resources and Automatisierung mit JSON-actions erstellen.

Note: When you try to extract JSON data to convert to a dictionary variable, if the JSON strings contain null values, the values are not converted to a dictionary variable as the dictionary variable does not support converting null values. However, if JSON includes an empty string ("") instead of null, it will convert to a dictionary variable.
The JSON data source defined in the Start session action serves as the input for the Convert JSON to Dictionary action. Ensure that you use the same session name when configuring this action.

Procedure

  1. In the Session name field, enter the same session name or session variable used in the Start session action.
  2. Choose from the following options to save the outcome to a variable:
    • Dictionary: Select a dictionary variable or create one to hold the output.
    • Multiple variables: Select this option to store the output in multiple variables by providing the key and the variable to which the key must be mapped.
    The key in variable mapping is the key in the JSON node.