<How to check if all elements of JSON array have p...
# stackoverflow
r
How to check if all elements of JSON array have property in request body with Wiremock? I have a following example JSON body, which will be sent to Wiremock. { "array1": [ { "prop1": "value", }, { "prop1": "value", }, { "prop1": "value", } ] } I need a matcher which will match if at leas one of prop1 properties will be missing from json. prop1 can be of any value, even null. Tried this one "expression" : "$.array1[?(@.prop1)]", "absent: true" and it works only if array is missing all prop1 properties.
l