Action group: JSON
The action compares two JSON files and returns "true" if they are same, and "false" if not.
Свойство | Описание | Тип | Пример заполнения | Обязательность заполнения поля |
---|---|---|---|---|
Параметры | ||||
Первый JSON | Первый JSON для сравнения | Robin.JSON | Да | |
Второй JSON | Второй JSON для сравнения | Robin.JSON | Да | |
Результаты | ||||
Результат | Логическая переменная, значение которой равно true, если файлы равны, иначе - 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.