Get keys Version 6 (Java)
Action group: JSON
Description
The action returns collection of all JSON keys.
Action icon
Settings of parameters
Свойство | Англ. наименование | Описание | Тип | Пример заполнения | Обязательность заполнения поля |
---|---|---|---|---|---|
Параметры | |||||
JSON | JSON | JSON для обработки | Robin.JSON | Да | |
Результаты | |||||
Коллекция ключей | Collection of all keys | Переменная, содержащая коллекцию всех ключей JSON. | 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.
Обзор
Инструменты контента