Action group: JSON
The action compares two JSON files and returns "true" if they are same, and "false" if not.
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
First JSON | First JSON for comparing | Robin.JSON | Yes | |
Second JSON | Second JSON for comparing | Robin.JSON | Yes | |
Results | ||||
Result | Logical variable whose value is true if files are equal, otherwise false. | Robin.Boolean | true |
None.
Compare two JSON files.
The first file test.json:
{ "firstname":"Joe", "lastname": "Jackson", "gender":"male", "age": 28, "address": { "streetAddress": "101", "city": "San Diego", "state": "CA" }, "phonenumber": [ { "type": "home", "number": "9349282382"} ] } |
The second file test 2.json:
{ "firstname":"Joil", "lastname": "Jackson", "gender":"male", "age": 31, "address": { "streetAddress": "101", "city": "San Diego", "state": "CA" }, "phonenumber": [ { "type": "home", "number": "79349282382"} ] } |
Use the "Open", "Compare" actions.
The program robot completed successfully. The contents of the two files are different.