Get keys Version 6 (Java)
Action group: JSON
Description
The action returns collection of all JSON keys
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
JSON | JSON for processing. Note: The action does not work with JSON arrays (start with „[„). | Robin.JSON | Yes | |
Results | ||||
Collection of all keys | A variable containing a collection of all JSON keys. | Robin.Collection |
Special conditions of use
None.
Example of use
Task
Get JSON file key collection test.json and read the first key of the collection at index 0.
Solution
Use the "Open", "Get keys", "Get value by index" actions.
Implementation
- Assemble a robot scheme with the actions.
- Set the "Open" action parameters.
- Set the "Get keys" action parameters.
- Set the "Get value by index" action parameters.
- Click "Start" in the top panel.
Result
The program robot completed successfully. The keys collection from JSON was obtained.
The key at index 0 is obtained.
Обзор
Инструменты контента