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

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
DictionaryDictionary for convertingRobin.Dictionary
Yes
EncodingDictionary content encodingRobin.String
No
Results
ResultThe 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

  1. Assemble a robot scheme with the actions.
  2. Create a dictionary that contains 3 values of a "string" type and 1 value of a "dictionary" type.

  3. Set the "Convert a dictionary to a JSON" action parameters.

  4. Set the "Save to file" action parameters.
  5. 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.

  • Нет меток