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

value

open fun <T : Any> value(matcher: Matcher<T>): ResultMatcher

Evaluate the JSON path expression against the response content and assert the resulting value with the given Hamcrest Matcher.

open fun value(expectedValue: Any): ResultMatcher

Evaluate the JSON path expression against the response content and assert that the result is equal to the supplied value.