Action group: JSON
The action checks if the JSON contains the key
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
JSON | JSON for processing | Robin.JSON | Yes | |
Key | Key in the JSON | Robin.String | Yes | |
Results | ||||
Result | Logical variable whose value is true if the key is contained in the JSON, otherwise false. | Robin.Boolean | true |
None.
Check if the JSON file test.json contains the key "firstname".
{ "firstname":"Joe", "lastname": "Jackson", "gender":"male", "age": 28, "address": { "streetAddress": "101", "city": "San Diego", "state": "CA" }, "phonenumber": [ { "type": "home", "number": "9349282382"} ] } |
Use the "Open", "Contains key" actions.
The program robot completed successfully. JSON does contain the key.