add_json_extractor
Adds a JSON Extractor to an HTTP sampler, capturing a value from the JSON response into a JMeter variable using a JSONPath expression.
Instructions
Add a JSON Extractor post-processor under an HTTP sampler, to save a value from the JSON response into a variable.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"planId": "<planId>",
"parentId": "<parentId>",
"name": "<name>",
"referenceName": "<referenceName>",
"jsonPathExpr": "<jsonPathExpr>"
},
"name": "add_json_extractor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| planId | Yes | ||
| parentId | Yes | Id of the HTTP sampler node this extractor applies to | |
| defaultValue | No | Value to use if the JSONPath doesn't match | NOT_FOUND |
| jsonPathExpr | Yes | JSONPath expression, e.g. $.data.id | |
| referenceName | Yes | JMeter variable name to store the extracted value in |