spring-framework / org.springframework.test.web.servlet.result / JsonPathResultMatchers / exists

exists

open fun exists(): ResultMatcher

Evaluate the JSON path expression against the response content and assert that a non-null value exists at the given path.

If the JSON path expression is not definite, this method asserts that the value at the given path is not empty.