A JSONPath assertion allows to check a value using a JSONPath selector.
This assertion interface is as follows:
The following JSONPath assertion fields are shown in the screenshot:
Text - the text to search the value in
Path - a JSONPath selector
Expected value - an expected value for this selector. The value should be represented as an array of expected elements.
The Use negative statement flag means using the opposite assertion result, i.e. there should be no values for the specified selector in the text.
To get rid of an error, the XPath selector value is assigned to the expected value.