Update node value

This action enables you to update the value of an existing node in 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 update a key at the root level of JSON.
  2. 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).
  3. Depending on the data type you select, enter the corresponding value in the Value field to update the JSON data.
  4. Select Replace array node with a new value check box if you want to replace the entire array node with a new value.
  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.