Add node value

This action enables you to add a new node and its corresponding value of different data types to an existing JSON data.

Procedure

  1. Enter the JSON node path or press F2 to insert a variable in the JSON node path field.
    Note: Enter $ in the JSON node path field if you want to add a key at the root level of JSON.
  2. Enter the key name in the Key name field to add a new node to the JSON data. You can press F2 to insert a variable.
  3. In the Value type field, select the value type from the drop-down list. (String, Number, Boolean, Datetime, List and Dictionary data types are supported).
  4. Depending on the data type you select, enter the corresponding value in the Value field to set in the JSON data.
  5. In the Session name field, enter the same session name or variable used in the Start session action.
    For more information on how to use some of the JSON actions, see this example topic Build automation using JSON actions.