add_json_assertion
Add a JSON Assertion to an HTTP sampler to validate JSONPath expressions in responses. Configure expected values, regex, negation, and null checks for precise API testing.
Instructions
Add a JSON Assertion under an HTTP sampler, to validate a JSONPath expression exists (and optionally matches a value) in the response.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | JSON Assertion | |
| invert | No | Negate the assertion | |
| planId | Yes | ||
| isRegex | No | Treat expectedValue as a regular expression | |
| jsonPath | Yes | JSONPath expression, e.g. $.value | |
| parentId | Yes | ||
| expectNull | No | ||
| expectedValue | No | Value to compare against, only checked if jsonValidation is true | |
| jsonValidation | No | Whether to check expectedValue at all |