This message was deleted.
# help
s
This message was deleted.
a
Have you tried
json-unit.any-string
?
r
Yes I did. Unfortunately it's the same result
a
Do you need to match on the entire request body, or is there a certain key:value?
r
No there are many `null`values which I could skip. There are more or less five params, which I'm interested in
a
So, you could make use of the
ignoreExtraElements
flag to just check for those attributes. For example:
Copy code
// actual request body
{
  "foo": "bar",
  "baz": "bar"
}
Copy code
...
.withRequestBody(equalToJson("{ \"foo\": \"bar\" }", true, true))
...
Would match, even though I haven’t provided a match for
"baz"
r
o.k. I will give it a try, thank you