Validating a response in JSON format is almost identical to the standard procedure. For more information about validating a HTTP request, see Global validation.
You may define validations on the JSON response using JSONPath. To recap, JSONPath is a syntax that points to a portion of a JSON document.
For a JSON request, response validators may be created:
This will create an JSONPath expression based on the selected JSON node. You may edit the expression manually, but you must make sure the JSONPath expression remains valid. The JSONPath expression may be variabilized.
You will then return to the normal procedure, except that instead of carrying out the validation on the entire server response, it will be done only on the part specified by the JSONPath expression.
The JSONPath expression for the selected node is displayed in the text field.