Convert to string Version 6 (Java)

Action group: JSON


Description

The action converts JSON to a string.

Action icon


Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
JSONJSON for convertingRobin.JSON
Yes
Results
ResultThe string, which contains the data from the JSON.Robin.String

Special conditions of use

None.

Example of use

Task

Convert JSON content test.json to a string.

test.json
{
	"firstname":"Joe",
	"lastname": "Jackson",
	"gender":"male",
	"age": 28,
	"address": {
		"streetAddress": "101",
		"city": "San Diego",
		"state": "CA"
	},
	"phonenumber": [
	{ "type": "home", "number": "9349282382"}
	]
}

Solution

Use the "Open", "Convert to string" action parameters. 

Implementation

  1. Assemble a robot scheme with the actions.

  2. Set the "Open" action parameters.

  3. Set the "Convert to string" action parameters.

  4. Click "Start" in the top panel.

Result

The program robot completed successfully. JSON was converted to a string.

  • Нет меток