Convert a dictionary to a JSON Version 7 (Java)
Action group: JSON
Description
The action converts a dictionary to a JSON
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Dictionary | Dictionary for converting | Robin.Dictionary | Yes | |
Encoding | Dictionary content encoding | Robin.String | No | |
Results | ||||
Result | The JSON containing data from this dictionary. | Robin.JSON |
Special conditions of use
None.
Example of use
Task
Convert a dictionary to a JSON and save the document to workspace.
Solution
Use the "Convert a dictionary to a JSON", "Save to file" actions.
Implementation
- Assemble a robot scheme with the actions.
- Create a dictionary that contains 3 values of a "string" type and 1 value of a "dictionary" type.
- Set the "Convert a dictionary to a JSON" action parameters.
- Set the "Save to file" action parameters.
- Click "Start" in the top panel.
Result
The program robot completed successfully. The dictionary is successfully converted to a JSON.
JSON is saved to the specified folder.
Обзор
Инструменты контента