Validate a JSON response

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.

NL-JSONResponseValidation-6.4

For a JSON request, response validators may be created:

  1. Create a validator.
  2. Select the On a particular node by option and select JSONPath in the list box.
  3. Click on the magnifying glass next to the text field below and select the JSON node to be validated.
  4. Click OK.

    The JSONPath expression for the selected node is displayed in the text field.

  5. Select the text to be validated by clicking on the magnifying glass next to the text field below.