Save to file Version 7 (Java)
Action group: JSON
Description
The action saves the content of a JSON to a file with extension .json
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
JSON | JSON to be saved | Robin.JSON | Yes | |
File name | Name of file without extension | Robin.String | Yes | |
Folder path | Folder for saving file. | Robin.FolderPath | C:\doc\img | Yes |
Encoding | Encoding used to write the JSON. | Robin.String | No | |
Results | ||||
Result | Path to saved JSON | Robin.FilePath |
Special conditions of use
None.
Example of use
Task
Convert a string to JSON and save the document to workspace.
Solution
Use the "Convert a string to a JSON", "Save to file" actions.
Implementation
- Assemble a robot scheme with the actions.
- Set the "Convert a string 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 JSON document was saved to the specified path.
Обзор
Инструменты контента