Compare Version 6 (Java)
Action group: JSON
Description
The action compares two JSON files and returns "true" if they are same, and "false" if not.
Action icon
Settings of parameters
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 |
Special conditions of use
None.
Example of use
Task
Compare two JSON files.
The first file test.json:
The second file test 2.json:
Solution
Use the "Open", "Compare" actions.
Implementation
- Assemble a robot scheme with the actions.
- Set the "Open" action parameters (1st file).
- Set the "Open" action parameters (2nd file).
- Set the "Compare" action parameters.
- Click "Start" in the top panel.
Result
The program robot completed successfully. The contents of the two files are different.
Обзор
Инструменты контента