Remove value Version 6 (Java)

Action group: JSON 


Description

The action removes the value from JSON by its key

Action icon


Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
JSONJSON for processingRobin.JSON
Yes
JSONPathJSONPath describes the path to the JSON element. It always starts with a „/“ character. The corresponding keys are listed below. Indexes are used to access array elements (counting starts from 0). For example, the path „/key/1“ indicates that we are trying to access the second element of the array, which is accessible by the key „key“.Robin.String
Yes
Results
Processed JSONJSON without specified value.Robin.JSON

Special conditions of use

None.

Example of use

Task

Remove value with the key "value 1" from JSON file.

JSON sample
{"value 3":"Val 3",
"value 2":"Val 2",
"value 1":"Val 1",
"dic":{"1":"test 1", "2":"test"}}

Solution

Use the "Open", "Remove value" actions.

Implementation

  1. Assemble a robot scheme with the actions.
  2. Set the "Open" action parameters.
  3. Set the "Remove value" action parameters.
  4. Click "Start" in the top panel.

Result

The program robot completed successfully. The value by the key "value 1" was removed from the JSON file.

  • Нет меток