DATA FORMAT Delete JSON key function

The DATA FORMAT Delete JSON key function in RPA.

Help CentreFunctions & Formulas

This article describes the RPA Data Format functionality to delete a key from JSON data.

For a full list of available functions, please read DATA FORMAT functions.


Description

The Delete JSON key function removes a key and its value from JSON data at the specified path.


Setting it up

To use the Delete JSON key function, follow these instructions:

{{popups:rpas/add:action=json-delete}}

Once on a process map:

  1. Navigate to the process where you would like to add the Delete JSON key function
  2. Click on the green button’s drop-down (right side of the green button labelled “Process”)
  3. On the menu that appears, click on the “+ Activity” item
  4. From here you can select the DATA FORMAT Delete JSON key option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
DataYesText-The JSON data to modify (string or variable)
PathYesText-Dot-notation path to the key to delete
VariableNoTextdataVariable name to store the modified JSON

Output variables

VariableTypeDescription
{data}AnyThe modified JSON data with the key removed

Errors

ErrorDescription
Invalid JSONThe data is not valid JSON
Path not foundThe specified path does not exist in the data

Tips

  • Use json-query to verify the key exists before deleting
  • Useful for removing sensitive fields before logging or forwarding data

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.