Like this i have two JSON objects , one which i have taken from response and another is expected one which i am preparing in my tests script and i want to match these two objects two check whether they are same or not.
Hi,
This is somehow not working for me.
In case:-
var expectedObject = {
“id”:“doe”,
“name”:“john”
}
i.e. the order of the fields inside the json structure changes then the assertion fails.
If its actually a JSON object comparision then it should not fail.
Anyway, this can be achieved?