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

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
JSONJSON to be savedRobin.JSON
Yes
File nameName of file without extensionRobin.String
Yes
Folder pathFolder for saving file.Robin.FolderPathC:\doc\imgYes
EncodingEncoding used to write the JSON.Robin.String
No
Results
ResultPath to saved JSONRobin.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

  1. Assemble a robot scheme with the actions.
  2. Set the "Convert a string to a JSON" action parameters. 
  3. Set the "Save to file" action parameters.
  4. Click "Start" in the top panel.

Result

The program robot completed successfully.

The JSON document was saved to the specified path.

  • Нет меток