JSON Matcher
JSON matching will match exactly the JSON that is entered into the editor. The order of the objects is irrelevant, but the JSON document as a whole should evaluate to exactly what is typed into the editor.
Do not confuse this with the EXACT matcher which looks for exact string content. The JSON matcher looks for exact JSON content and doesn't care about order, only structure and values.
JSON Matching example:
Matcher value
Positive match payload
Non match payload
{
"name": "John",
"surname": "Doe"
}
{ "surname": "Doe" , "name": "John"}
{
"name": "Jane",
"surname": "Doe"
}
Last updated