JSON Object - Delete field

Declaration

<AMJSON ACTIVITY="delete_field" JSONOBJECT="text" PATH="text" />

Related Topics    

Description

Deletes a specified field and its value from an existing Automate Desktop JSON Object.

Practical usage

JSON is primarily used to transmit data between a server and web application, as an alternative to XML. Use this activity to delete a field from an Automate Desktop JSON Object.

Parameters

General

Property Type Required Default Markup Description
JSON Object name Text Yes (Empty) JSONOBJECT="donuts" The name of the JSON Object to delete the field from.
Field to delete Text Yes (Empty) PATH="chocolate" Specifies the JSON field to delete. To select a field, click Select field, and then from the dialog that appears, choose the desired field by clicking its hyperlink.

Description

Error Causes

On Error

Example

NOTE:
  • Copy and paste the sample AML code below directly into the Task Builder Steps Panel.
  • To successfully run the sample code, update parameters containing user credentials, files, file paths, or other information specific to the task to match your environment.

Description

This sample task deletes a field from an Automate Desktop JSON Object.

Copy
<AMJSON JSONOBJECT="donuts" JSONSTRING="{ 'chocolate': 10, 'glazed': 25 , 'jelly': 5 }" />
<AMJSON ACTIVITY="delete_field" JSONOBJECT="donuts" PATH="chocolate" />