Get values Version 8 (Java)

Action group: JSON


Description

The action returns a collection of all JSON values.

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
JSONJSON for processingRobin.JSON
Yes
Results
Collection of all valuesA variable containing a collection of all JSON values.Robin.Collection

Special conditions of use

None.

Example of use

Task

Get values of the JSON file test.json and read at index 0 the first element of the collection.

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", "Get values", "Get value by index" actions.  

Implementation

  1. Assemble a robot scheme with the actions.

  2. Set the "Open" action parameters.

  3. Set the "Get values" action parameters.

  4. Set the "Get value by index" action parameters. 

  5. Click "Start" in the top panel.

Result

The program robot completed successfully. The element collection from JSON was obtained.

An element at index 0 is obtained.

  • Нет меток