hasJsonPath

open fun hasJsonPath(expression: CharSequence, args: Array<Any>): JsonContentAssert

Verify that the JSON path is present without checking if it has a value.

Return

this assertion object

Since

2.2.0

Parameters

expression

the JsonPath expression

args

arguments to parameterize the JsonPath expression with, usingformatting specifiers defined in format

See also

Throws

if the value at the given path is missing